/* Modern Premium CSS Reset and Variables */
:root {
  /* ── Brand Colors ── */
  --primary-color: #0B162C;
  /* Dark Navy — text, headings, dark sections */
  --primary-light: #1A2A4A;
  /* Lighter navy — gradient end */
  --navbar-bg: #0B1A2F;
  /* Slightly bluer than primary — navbar, dropdowns */
  --secondary-color: #007BFF;
  /* Royal Blue — CTA, links, accents */
  --accent-color: #00D2FF;
  /* Cyan — decorative, glow, hero dots */

  /* ── Backgrounds ── */
  --bg-main: #FFFFFF;
  --surface-color: #f8fafc;
  /* Card backgrounds, inputs */

  /* ── Text ── */
  --text-dark: #0B162C;
  --text-muted: #64748b;
  --text-subtle: #94a3b8;
  /* Placeholders, timestamps, metadata */
  --text-light: #ffffff;

  /* ── Border ── */
  --border-color: #e2e8f0;

  /* ── Status Colors ── */
  --error-color: #ef4444;
  --success-color: #10b981;
  --warning-color: #f59e0b;

  /* ── Outlook / Sentiment Colors ── */
  --outlook-stable: #059669;
  /* Stable outlook — green */
  --outlook-positive: #007BFF;
  /* Positive outlook — blue */
  --outlook-negative: #dc2626;
  /* Negative outlook / Urgent — red */

  /* ── Rating Grade Colors ── */
  --grade-aaa: #10b981;
  --grade-aa: #34d399;
  --grade-a: #84cc16;
  --grade-bbb: #facc15;
  --grade-bb: #fb923c;
  --grade-ccc: #f97316;
  --grade-d: #ef4444;

  /* ── RGB channels for rgba() ── */
  --primary-rgb: 11, 22, 44;
  --secondary-rgb: 0, 123, 255;
  --accent-rgb: 0, 210, 255;

  /* ── Z-index Scale ── */
  --z-navbar: 1000;
  --z-modal: 10000;
  --z-modal-top: 10002;

  /* ── Radius ── */
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;

  /* ── Shadows ── */
  --shadow-sm: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --shadow-md: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
  --shadow-hover: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);

  /* ── Typography ── */
  --font-main: 'Inter', system-ui, -apple-system, sans-serif;
  --font-serif: 'Lora', Georgia, serif;

  /* ── Transition ── */
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-feature-settings: "lnum";
}

body {
  font-family: var(--font-main);
  background-color: var(--bg-main);
  color: var(--text-dark);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a {
  text-decoration: none;
  color: var(--secondary-color);
  transition: var(--transition);
}

a:hover {
  filter: brightness(1.2);
}

img {
  max-width: 100%;
  height: auto;
  border-radius: var(--radius-sm);
}

/* Layout */
main {
  flex: 1;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: 700;
  line-height: 1.2;
  color: var(--primary-color);
  margin-bottom: 0.5em;
}

h1 {
  font-size: 2.5rem;
}

h2 {
  font-size: 1.8rem;
}

h3 {
  font-size: 1.5rem;
}

p {
  margin-bottom: 1rem;
  color: var(--text-dark);
}

/* Unified Navbar */
/* ===== Navbar ===== */
/* ===== NAVBAR ===== */
.navbar {
  background: var(--navbar-bg);
  position: sticky;
  top: 0;
  z-index: var(--z-navbar);
  padding: 0;
  transition: background 0.3s ease, padding 0.3s ease;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

/* Sticky container for inner pages */
#navbar-container {
  position: sticky;
  top: 0;
  z-index: var(--z-navbar);
}

/* Homepage transparent navbar */
.home-main .navbar,
body:has(.home-main) .navbar {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  background: transparent;
  box-shadow: none;
  border-bottom: none;
  z-index: 100;
}

/* Navbar scrolled state on all pages */
.navbar.scrolled {
  background: var(--navbar-bg);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.home-main .navbar.scrolled,
body:has(.home-main) .navbar.scrolled {
  position: fixed;
  background: var(--navbar-bg);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.navbar .container {
  display: flex;
  align-items: center;
  gap: 0;
}

.navbar-brand {
  display: flex;
  align-items: center;
  text-decoration: none;
  padding: 20px 0;
  margin-right: auto;
  transition: padding 0.3s ease;
}

.navbar.scrolled .navbar-brand {
  padding: 12px 0;
}

.navbar-logo {
  height: 44px;
  width: auto;
  transition: height 0.3s ease;
}

.navbar.scrolled .navbar-logo {
  height: 38px;
}

/* Nav Links (text menu) */
.nav-links {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 0;
}

.nav-item {
  position: relative;
}

.nav-link {
  display: flex;
  align-items: center;
  padding: 28px 18px;
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.88rem;
  font-weight: 500;
  text-decoration: none;
  letter-spacing: 0.01em;
  white-space: nowrap;
  transition: color 0.2s, padding 0.3s ease;
}

.navbar.scrolled .nav-link {
  padding: 16px 18px;
}

.nav-link:hover,
.nav-item.open .nav-link {
  color: var(--secondary-color);
}

/* Dropdown */
.nav-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 260px;
  background: var(--navbar-bg);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-top: 2px solid var(--secondary-color);
  list-style: none;
  margin: 0;
  padding: 8px 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(4px);
  transition: opacity 0.2s, transform 0.2s, visibility 0.2s;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.nav-item.open .nav-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.nav-dropdown li a {
  display: block;
  padding: 10px 20px;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.85rem;
  text-decoration: none;
  transition: background 0.15s, color 0.15s;
}

.nav-dropdown li a:hover {
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
}

/* Nav Actions (right side) */
.nav-actions {
  display: flex;
  gap: 4px;
  align-items: center;
  margin-left: auto;
  padding-left: 16px;
}

.nav-icon-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: transparent;
  border: none;
  color: rgba(255, 255, 255, 0.7);
  cursor: pointer;
  transition: color 0.2s, background 0.2s;
  text-decoration: none;
  padding: 0;
  line-height: 0;
  font-size: 0;
}

.nav-icon-btn svg {
  display: block;
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.nav-icon-btn:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
}

/* Language Dropdown */
.nav-lang-wrapper {
  position: relative;
}

.nav-lang-dropdown {
  position: absolute;
  top: 100%;
  right: 0;
  min-width: 140px;
  background: var(--navbar-bg);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-top: 2px solid var(--secondary-color);
  border-radius: 0 0 6px 6px;
  padding: 6px 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(4px);
  transition: opacity 0.2s, transform 0.2s, visibility 0.2s;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
  z-index: 100;
}

.nav-lang-wrapper.open .nav-lang-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.nav-lang-option {
  display: block;
  padding: 10px 18px;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.85rem;
  text-decoration: none;
  transition: background 0.15s, color 0.15s;
}

.nav-lang-option:hover {
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
}

.nav-lang-option.active {
  color: var(--secondary-color);
  font-weight: 600;
}

/* Search Panel */
.nav-search-wrapper {
  position: static;
}

.nav-search-panel {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  background: var(--navbar-bg);
  border: none;
  border-bottom: 2px solid var(--secondary-color);
  border-radius: 0;
  padding: 32px 24px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-100%);
  transition: opacity 0.3s, transform 0.3s, visibility 0.3s;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.4);
  z-index: 1001;
}

.nav-search-wrapper.open .nav-search-panel {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.nav-search-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.nav-search-input-wrap {
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 14px;
  overflow: hidden;
  margin: 8px 0;
  transition: border-color 0.25s, box-shadow 0.25s, background 0.25s;
}

.nav-search-input-wrap:focus-within {
  border-color: rgba(255, 255, 255, 0.32);
  background: rgba(255, 255, 255, 0.09);
  box-shadow: 0 0 0 3px rgba(0, 120, 230, 0.2);
}

.nav-search-input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: #fff;
  font-size: 1rem;
  font-family: var(--font-main);
  padding: 18px 20px;
}

.nav-search-input::placeholder {
  color: rgba(255, 255, 255, 0.3);
}

.nav-search-submit {
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.4);
  padding: 0 18px 0 4px;
  align-self: stretch;
  cursor: pointer;
  transition: color 0.2s;
  flex-shrink: 0;
}

.nav-search-submit:hover {
  color: rgba(255, 255, 255, 0.85);
}

.nav-search-suggestions {
  margin: 0;
  padding: 0;
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-height 0.3s, margin 0.3s, opacity 0.2s;
}

.nav-search-suggestions.visible {
  max-height: 680px;
  margin-top: 16px;
  opacity: 1;
  overflow-y: auto;
}

.nav-search-results-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  column-gap: 0;
  row-gap: 0;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  overflow: hidden;
}

.nav-search-result-group {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 22px 20px;
  border-right: 1px solid rgba(255, 255, 255, 0.08);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.nav-search-result-group:nth-child(3n) {
  border-right: none;
}

.nav-search-result-group:nth-last-child(-n+3) {
  border-bottom: none;
}

.nav-search-result-heading {
  display: flex;
  align-items: center;
  gap: 7px;
  margin: 0;
  color: rgba(255, 255, 255, 0.45);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.nav-search-result-heading svg {
  width: 13px;
  height: 13px;
  color: var(--secondary-color);
  flex-shrink: 0;
}

.nav-search-result-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.nav-search-result-item {
  display: block;
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  font-size: 0.875rem;
  line-height: 1.45;
  font-weight: 500;
  padding: 7px 8px;
  border-radius: 7px;
  transition: background 0.15s, color 0.15s;
}

.nav-search-result-item span {
  display: block;
  margin-top: 2px;
  font-size: 0.7rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.35);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.nav-search-result-item:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.nav-search-results-footer {
  display: flex;
  justify-content: flex-end;
  margin-top: 14px;
}

.nav-search-view-all {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 999px;
  background: #1020b0;
  color: #fff;
  font-size: 0.86rem;
  font-weight: 700;
  text-decoration: none;
  transition: background 0.2s, transform 0.2s;
}

.nav-search-view-all svg {
  width: 14px;
  height: 14px;
}

.nav-search-view-all:hover {
  background: #1b2dcf;
  transform: translateY(-1px);
}

/* Mobile hamburger */
.nav-mobile-toggle {
  display: none;
  background: none;
  border: none;
  color: #fff;
  cursor: pointer;
  padding: 8px;
}

/* ===== MOBILE NAV OVERLAY ===== */
.nav-mobile-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  z-index: 1099;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
}

.nav-mobile-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

/* Drawer header */
.nav-mobile-drawer-header {
  display: none;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  flex-shrink: 0;
}

.nav-mobile-drawer-logo {
  height: 28px;
  width: auto;
}

.nav-mobile-drawer-title {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.45);
}

.nav-mobile-close {
  background: rgba(255, 255, 255, 0.08);
  border: none;
  color: rgba(255, 255, 255, 0.7);
  cursor: pointer;
  padding: 7px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  transition: background 0.2s, color 0.2s;
}

.nav-mobile-close:hover {
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
}

/* Drawer footer */
.nav-mobile-drawer-footer {
  margin-top: auto;
  padding: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  flex-shrink: 0;
  display: none;
  flex-direction: column;
  gap: 10px;
}

.nav-mobile-footer-label {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.35);
  margin: 0 0 4px;
}

.nav-mobile-footer-item {
  display: flex;
  align-items: center;
  gap: 10px;
  color: rgba(255, 255, 255, 0.65);
  text-decoration: none;
  font-size: 0.875rem;
  transition: color 0.2s;
}

.nav-mobile-footer-item:hover {
  color: #fff;
}

.nav-mobile-footer-item svg {
  flex-shrink: 0;
  opacity: 0.6;
}

/* ===== RESPONSIVE NAV ===== */
@media (max-width: 1024px) {
  /* Right-side drawer */
  .nav-links {
    display: flex;
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: 300px;
    height: 100dvh;
    flex-direction: column;
    background: #0c1a3d;
    border-top: none;
    padding: 0;
    margin: 0;
    list-style: none;
    overflow-y: auto;
    overflow-x: hidden;
    z-index: 1100;
    transform: translateX(100%);
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: -8px 0 32px rgba(0, 0, 0, 0.4);
  }

  .nav-links.mobile-open {
    transform: translateX(0);
  }

  .nav-mobile-drawer-header {
    display: flex;
  }

  .nav-mobile-drawer-footer {
    display: flex;
  }

  /* Nav items - larger tap targets */
  .nav-item {
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  }

  .nav-link {
    padding: 18px 24px;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
  }

  .nav-dropdown {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    border: none;
    border-top: none;
    box-shadow: none;
    background: rgba(0, 0, 0, 0.2);
    padding-left: 0;
  }

  .nav-item.has-dropdown .nav-dropdown {
    display: none;
  }

  .nav-item.has-dropdown.open .nav-dropdown {
    display: block;
  }

  /* Mobile dropdown arrow indicator */
  .nav-item.has-dropdown>.nav-link::after {
    content: '';
    display: inline-block;
    width: 7px;
    height: 7px;
    border-right: 2px solid rgba(255, 255, 255, 0.5);
    border-bottom: 2px solid rgba(255, 255, 255, 0.5);
    transform: rotate(45deg);
    margin-left: auto;
    flex-shrink: 0;
    transition: transform 0.25s ease;
  }

  .nav-item.has-dropdown.open>.nav-link::after {
    transform: rotate(-135deg);
  }

  .nav-dropdown li {
    border-bottom: none;
  }

  .nav-dropdown li a {
    padding: 14px 24px 14px 32px;
    font-size: 0.92rem;
    color: rgba(255, 255, 255, 0.65);
    display: block;
    transition: color 0.2s, background 0.2s;
  }

  .nav-dropdown li a:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.06);
  }

  .nav-mobile-toggle {
    display: block;
  }

  .nav-actions {
    margin-left: 0;
    padding-left: 0;
  }

  .nav-search-panel {
    padding: 20px 16px;
  }

  .nav-search-suggestions.visible {
    max-height: 70vh;
  }
}

@media (max-width: 480px) {
  .nav-links {
    width: 85vw;
  }
}

@media (max-width: 768px) {
  .nav-search-results-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .nav-search-result-group:nth-child(3n) {
    border-right: 1px solid rgba(255, 255, 255, 0.08);
  }

  .nav-search-result-group:nth-child(2n) {
    border-right: none;
  }

  .nav-search-result-group:nth-last-child(-n+3) {
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }

  .nav-search-result-group:nth-last-child(-n+2) {
    border-bottom: none;
  }

  .nav-search-result-group {
    padding: 16px 14px;
  }
}

@media (max-width: 480px) {
  .nav-search-results-grid {
    grid-template-columns: 1fr;
  }

  .nav-search-result-group {
    border-right: none !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
    padding: 14px 12px;
  }

  .nav-search-result-group:last-child {
    border-bottom: none !important;
  }

  .nav-search-suggestions.visible {
    max-height: 75vh;
  }
}

@media (max-width: 576px) {
  .navbar-logo {
    height: 36px;
  }

  .nav-contact-btn {
    padding: 6px 14px;
    font-size: 0.8rem;
  }
}

/* ===== DIVIDERS (shared component) ===== */
.divider-dash {
  border: none;
  border-top: 1px dashed var(--border-color);
  margin: 0;
  opacity: 0.6;
}

/* ===== TABS NAVIGATION (shared component) ===== */
/* Dùng chung cho tất cả trang: newsroom, research, events, company-profile, corporate-disclosure */
/* HTML: <nav class="tabs-nav"><ul class="tabs-list"><li><button class="tab-btn active" data-tab="..."> */

.tabs-nav {
  background: var(--bg-main);
  border-bottom: 1px solid var(--border-color);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  position: sticky;
  top: calc(var(--nav-height, 69px) - 1px);
  z-index: 50;
  transition: top 0.3s ease;
}

.tabs-list {
  display: flex;
  gap: 0;
  list-style: none;
  margin: 0;
  padding: 0;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.tabs-list::-webkit-scrollbar {
  display: none;
}

.tab-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 16px 24px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-muted);
  background: transparent;
  border: none;
  border-radius: 0;
  cursor: pointer;
  white-space: nowrap;
  font-family: var(--font-main);
  transition: background 0.2s ease, color 0.2s ease;
}

.tab-btn:hover {
  color: var(--primary-color);
  background: rgba(var(--secondary-rgb), 0.06);
}

.tab-btn.active {
  color: var(--text-light);
  background: var(--primary-color);
}

.tab-btn svg,
.tab-icon {
  width: 18px;
  height: 18px;
  opacity: 0.6;
  flex-shrink: 0;
}

.tab-btn.active svg,
.tab-btn.active .tab-icon {
  opacity: 1;
}

/* Tab content panels */
.tab-content {
  display: none;
  animation: tabFadeIn 0.4s ease;
}

.tab-content.active {
  display: block;
}

@keyframes tabFadeIn {
  from {
    opacity: 0;
    transform: translateY(12px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 640px) {
  .tab-btn {
    padding: 14px 16px;
    font-size: 0.82rem;
    gap: 4px;
  }
}

/* ===== SUB-TABS (shared component — dùng trong tab lớn) ===== */
.sub-tabs {
  display: flex;
  gap: 4px;
  margin-bottom: 32px;
  background: var(--surface-color);
  border-radius: var(--radius-sm);
  padding: 4px;
  border: 1px solid var(--border-color);
}

.sub-tab {
  padding: 10px 20px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
  background: transparent;
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.2s;
  font-family: var(--font-main);
  white-space: nowrap;
}

.sub-tab:hover {
  color: var(--primary-color);
  background: rgba(var(--secondary-rgb), 0.06);
}

.sub-tab.active {
  color: #fff;
  background: var(--secondary-color);
}

.sub-tab-content {
  display: none;
}

.sub-tab-content.active {
  display: block;
  animation: tabFadeIn 0.3s ease;
}

@media (max-width: 640px) {
  .sub-tab {
    padding: 10px 14px;
    font-size: 0.8rem;
  }
}

@media (max-width: 768px) {
  .sub-tabs {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .sub-tabs::-webkit-scrollbar {
    display: none;
  }

  .sub-tab {
    flex-shrink: 0;
  }
}

/* ===== PROCESS NAV (shared component — sticky section navigator) ===== */
.process-nav {
  position: -webkit-sticky;
  position: sticky;
  top: calc(var(--nav-height, 69px) - 1px);
  z-index: 95;
  overflow: visible;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(8px);
  border-top: 1px solid rgba(var(--primary-rgb), 0.06);
  border-bottom: 1px solid rgba(var(--primary-rgb), 0.08);
}

.process-progress {
  height: 3px;
  background: transparent;
  width: 100%;
  position: absolute;
  left: 0;
  bottom: -1px;
  pointer-events: none;
}

.process-progress-fill {
  display: block;
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, var(--secondary-color), var(--accent-color));
  transition: width 0.1s ease;
}

.process-links {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 0;
  overflow-x: auto;
  scrollbar-width: none;
}

.process-links::-webkit-scrollbar {
  display: none;
}

.process-link {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 7px 12px;
  border-radius: 6px;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  white-space: nowrap;
  color: var(--text-muted);
  border: 1px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease, background-color 0.2s ease;
}

.process-link:hover {
  color: var(--secondary-color);
  border-color: rgba(var(--secondary-rgb), 0.2);
  background: rgba(var(--secondary-rgb), 0.08);
}

.process-link.active {
  color: #fff;
  border-color: rgba(var(--secondary-rgb), 0.45);
  background: var(--secondary-color);
}

@media (max-width: 960px) {
  .process-link {
    font-size: 0.7rem;
    padding: 6px 10px;
  }
}

@media (max-width: 768px) {
  .process-links {
    gap: 6px;
    padding: 8px 0;
  }

  .process-link {
    font-size: 0.66rem;
    padding: 6px 10px;
  }
}

/* ===== CTA SECTION (shared component) ===== */
.cta-section {
  padding: 80px 0;
}

.cta-section.cta-surface {
  background: var(--surface-color);
}

.cta-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}

.cta-card {
  padding: 40px;
  background: var(--bg-main);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

.cta-card:hover {
  box-shadow: var(--shadow-md);
  border-color: rgba(var(--secondary-rgb), 0.15);
}

.cta-card-icon {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(var(--secondary-rgb), 0.08);
  border-radius: 14px;
  color: var(--secondary-color);
  margin-bottom: 20px;
}

.cta-card-icon svg {
  width: 28px;
  height: 28px;
}

.cta-title,
.cta-card h3 {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 12px;
  line-height: 1.4;
}

.cta-desc,
.cta-card p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.65;
  margin-bottom: 24px;
  flex: 1;
}

.cta-card .btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  align-self: flex-start;
  margin-top: auto;
}

@media (max-width: 768px) {
  .cta-section {
    padding: 56px 0;
  }

  .cta-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .cta-card {
    padding: 28px;
  }
}

/* ===== PAGINATION (shared component) ===== */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  flex-wrap: wrap;
}

.page-btn {
  width: 38px;
  height: 38px;
  min-width: 38px;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border-color);
  border-radius: 50%;
  font-family: var(--font-main);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-muted);
  background: var(--bg-main);
  cursor: pointer;
  transition: var(--transition);
  flex-shrink: 0;
  text-decoration: none;
  user-select: none;
}

.page-btn:hover:not(:disabled):not(.disabled) {
  border-color: var(--secondary-color);
  color: var(--secondary-color);
}

.page-btn.active {
  background: var(--secondary-color);
  border-color: var(--secondary-color);
  color: #fff;
  font-weight: 600;
}

.page-btn.disabled,
.page-btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
  pointer-events: none;
}

.page-btn svg {
  display: block;
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.page-btn-nav {
  background: var(--surface-color);
}

/* Premium Buttons */
button,
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 24px;
  font-size: 1rem;
  font-weight: 600;
  font-family: var(--font-main);
  line-height: 1.5;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition);
  border: 2px solid transparent;
  box-sizing: border-box;
}

.btn-primary {
  background: var(--secondary-color);
  color: var(--surface-color);
  box-shadow: 0 4px 14px 0 rgba(0, 132, 255, 0.39);
}

.btn-primary:hover {
  background: #0073e6;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 132, 255, 0.4);
}

.btn-secondary {
  background: transparent;
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
}

.btn-secondary:hover {
  background: var(--primary-color);
  color: var(--surface-color);
}

/* ════════════════════════════════════════════════════
   PAGE HERO — Shared dark gradient hero (inner pages)
   Single source of truth — used across all pages.
   Edit here to update every inner page hero at once.
   ════════════════════════════════════════════════════ */
.page-hero {
  position: relative;
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 50%, var(--primary-color) 100%);
  color: #fff;
  padding: 100px 0 60px;
  overflow: hidden;
}

.page-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background:
    radial-gradient(ellipse 600px 400px at 20% 50%, rgba(var(--secondary-rgb), 0.15), transparent),
    radial-gradient(ellipse 500px 300px at 80% 30%, rgba(var(--accent-rgb), 0.1), transparent);
  pointer-events: none;
}

.page-hero-content {
  position: relative;
  z-index: 2;
}

/* Breadcrumb nav */
.page-hero-breadcrumbs {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: 24px;
}

.page-hero-breadcrumbs a {
  color: rgba(255, 255, 255, 0.5);
  text-decoration: none;
  transition: color 0.2s;
}

.page-hero-breadcrumbs a:hover {
  color: #fff;
}

.page-hero-bc-sep {
  font-size: 0.7rem;
}

/* Badge pill */
.page-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(var(--secondary-rgb), 0.15);
  border: 1px solid rgba(var(--secondary-rgb), 0.3);
  border-radius: 100px;
  padding: 6px 16px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--accent-color);
  letter-spacing: 0.5px;
  text-transform: uppercase;
  margin-bottom: 20px;
}

.page-hero-badge svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

/* Title */
.page-hero h1 {
  font-family: var(--font-serif);
  font-size: 2.8rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 16px;
  line-height: 1.15;
}

/* Description */
.page-hero-desc {
  font-size: 1.05rem;
  color: rgba(255, 255, 255, 0.75);
  line-height: 1.7;
}

/* Action buttons (CTA area) */
.page-hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 28px;
}

.page-hero-actions .btn {
  padding: 14px 32px;
  font-size: 0.92rem;
  font-weight: 600;
}

.page-hero-actions .btn-outline-light {
  background: transparent;
  color: #fff;
  border: 2px solid rgba(255, 255, 255, 0.3);
}

.page-hero-actions .btn-outline-light:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.5);
}

/* Stats bar */
.page-hero-stats {
  position: relative;
  z-index: 2;
  display: flex;
  gap: 40px;
  margin-top: 36px;
  padding-top: 28px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  flex-wrap: wrap;
}

.page-hero-stat {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.page-hero-stat-value {
  font-family: var(--font-serif);
  font-size: 1.8rem;
  font-weight: 700;
  background: linear-gradient(135deg, #fff, var(--accent-color));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1.2;
}

.page-hero-stat-label {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.5);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Legacy: .page-header redirects to page-hero style */
.page-header {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
  color: var(--text-light);
  padding: 60px 0;
  text-align: center;
  margin-bottom: 40px;
}

.page-header h1 {
  color: var(--text-light);
  margin-bottom: 0;
}

/* ── Responsive ── */
@media (max-width: 1024px) {
  .page-hero {
    padding: 90px 0 48px;
  }

  .page-hero h1 {
    font-size: 2.4rem;
  }
}

@media (max-width: 768px) {
  .page-hero {
    padding: 80px 0 40px;
  }

  .page-hero h1 {
    font-size: 2rem;
  }

  .page-hero-desc {
    font-size: 0.95rem;
  }

  .page-hero-stats {
    gap: 24px;
  }

  .page-hero-stat-value {
    font-size: 1.5rem;
  }

  .page-hero-actions {
    flex-direction: column;
  }

  .page-hero-actions .btn {
    width: 100%;
    text-align: center;
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .page-hero {
    padding: 72px 0 32px;
  }

  .page-hero h1 {
    font-size: 1.7rem;
  }

  .page-hero-badge {
    font-size: 0.72rem;
    padding: 5px 12px;
  }

  .page-hero-desc {
    font-size: 0.9rem;
  }

  .page-hero-stats {
    flex-direction: column;
    gap: 16px;
    padding-top: 20px;
    margin-top: 24px;
  }

  .page-hero-stat-value {
    font-size: 1.3rem;
  }

  .page-hero-stat-label {
    font-size: 0.7rem;
  }
}

/* Cards & Sections Layout */
.content-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
  padding-bottom: 80px;
}

.card {
  background: var(--surface-color);
  border-radius: var(--radius-md);
  padding: 32px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-color);
  transition: var(--transition);
  height: 100%;
}

.card:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-4px);
  border-color: var(--secondary-color);
}

.card h2 {
  font-size: 1.25rem;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--bg-main);
  color: var(--primary-color);
}

.section-body {
  color: var(--text-muted);
}

/* Glassmorphism */
.glass {
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.3);
}

/* Footer */
footer {
  background: #fbfdff;
  /* Lighter white/blue background */
  color: #4a5568;
  padding: 120px 0 30px;
  margin-top: auto;
  position: relative;
  overflow: hidden;
  /* Prevent wave from spilling out */
}

/* Base container needs to stay above the absolute background */
footer .container {
  position: relative;
  z-index: 1;
}

.footer-wave {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('../img/Frame43.png');
  background-size: cover;
  background-position: center top;
  background-repeat: no-repeat;
  pointer-events: none;
  z-index: 0;
  opacity: 0.4;
}

.footer-top {
  display: block;
}

.footer-top-r1 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  align-items: end;
  margin-bottom: 24px;
}

.footer-dashed-line {
  grid-column: span 2;
  border-top: 1px dashed #d1d9e6;
  width: 100%;
}

.footer-top-r2 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  align-items: flex-start;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.3);
  margin-bottom: 40px;
}

.footer-logo {
  height: 48px;
  width: auto;
  align-self: flex-start;
  filter: brightness(0) saturate(100%) invert(10%) sepia(50%) saturate(2000%) hue-rotate(200deg);
}

.footer-social {
  display: flex;
  gap: 12px;
}

.footer-social-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(var(--secondary-rgb), 0.05);
  border: 1px solid rgba(var(--secondary-rgb), 0.1);
  color: var(--secondary-color);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.footer-social-icon:hover {
  background: var(--secondary-color);
  color: #fff;
  border-color: var(--secondary-color);
  transform: translateY(-3px);
  box-shadow: 0 4px 12px rgba(var(--secondary-rgb), 0.2);
}

.footer-col-info {
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 12px;
  grid-column: span 2;
}

.footer-address-text {
  font-size: 0.95rem;
  color: #4a5568;
  line-height: 1.6;
  margin: 0;
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.footer-contact-inline {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.footer-inline-item {
  font-size: 0.95rem;
  color: #4a5568;
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0;
}

.f-icon {
  color: var(--secondary-color);
  flex-shrink: 0;
  margin-top: 2px;
}

.footer-inline-item .f-icon {
  margin-top: 0;
}

.f-divider {
  color: #cbd5e1;
  font-size: 0.9rem;
}

.footer-heading {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 20px;
}

.footer-links-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  padding: 0;
  margin-bottom: 48px;
}

.footer-links-row:last-of-type {
  margin-bottom: 0;
}

.footer-col-subscribe {
  flex: 1;
}

.footer-text {
  font-size: 0.9rem;
  color: #4a5568;
  margin-bottom: 6px;
  line-height: 1.6;
}

.footer-subscribe {
  margin-bottom: 8px;
}

.footer-email-input {
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--text-subtle);
  color: var(--text-dark);
  font-size: 0.9rem;
  font-family: var(--font-main);
  padding: 8px 0;
  width: 300px;
  max-width: 100%;
  outline: none;
}

.footer-email-input::placeholder {
  color: var(--text-subtle);
}

.footer-email-input:focus {
  border-color: var(--secondary-color);
}

.footer-disclaimer {
  font-size: 0.75rem;
  color: var(--text-subtle);
  line-height: 1.5;
}

.footer-disclaimer a {
  color: var(--primary-color);
  text-decoration: underline;
  font-weight: 600;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 12px;
}

.footer-links a {
  color: #4a5568;
  font-size: 0.88rem;
  transition: color 0.2s;
}

.footer-links a:hover {
  color: var(--secondary-color);
}

.footer-bottom {
  text-align: left;
  padding-top: 30px;
  border-top: 1px dashed #d1d9e6;
  font-size: 0.82rem;
  color: var(--text-subtle);
}

/* ===== UTILITY ===== */
.truncate {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* =========================================
   HOMEPAGE SPECIFIC STYLES
   ========================================= */

.home-main {
  padding-bottom: 0px;
}

/* 1. Hero Section */
.hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 100vh;
  background-color: var(--primary-color);
  color: var(--text-light);
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url('../img/ss_2660438789\ \(1\).jpg') no-repeat center center;
  background-size: cover;
  z-index: 0;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(var(--primary-rgb), 0.9) 0%, rgba(var(--primary-rgb), 0.6) 50%, rgba(var(--primary-rgb), 0.3) 100%);
  z-index: 1;
}

.hero-section #navbar-container {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 30;
}

.hero-content {
  position: relative;
  z-index: 2;
  width: 100%;
  flex: 1;
  display: flex;
  align-items: center;
  gap: 60px;
  padding-top: 100px;
  padding-bottom: 40px;
  margin-top: -10%;
}

.hero-left {
  flex: 0 0 58%;
  max-width: 58%;
}

.hero-right {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-title {
  font-family: var(--font-serif);
  font-size: 3.8rem;
  line-height: 1.1;
  font-weight: 700;
  color: var(--text-light);
  margin-bottom: 24px;
}

.hero-tagline {
  font-size: 1.1rem;
  font-weight: 300;
  line-height: 1.7;
  margin-bottom: 40px;
  max-width: 520px;
  opacity: 0.9;
  color: var(--text-light);
  text-wrap: pretty;
}

.hero-cta-group {
  display: flex;
  gap: 16px;
  align-items: center;
}

.hero-cta.btn-primary {
  background: var(--secondary-color);
  color: #fff;
  padding: 14px 32px;
  border-radius: 6px;
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.2s;
  border: 2px solid var(--secondary-color);
}

.hero-cta.btn-primary:hover {
  background: #0073e6;
  border-color: #0073e6;
}

.hero-cta.btn-outline {
  background: transparent;
  color: #fff;
  padding: 14px 32px;
  border-radius: 6px;
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  border: 2px solid rgba(255, 255, 255, 0.4);
  transition: border-color 0.2s, background 0.2s;
}

.hero-cta.btn-outline:hover {
  border-color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

/* ── HERO VISUAL ANIMATION SYSTEM ──────────────────────────
   Namespace : .hv-*  (hero visual)
   Reusable  : any dark-background section
   Center    : lotus.svg with breathing glow
   Rings     : 4 concentric, pulsing outward
   Sweep     : conic-gradient radar rotation
   Orbits    : 3 dots orbiting at different radii & speeds
   Particles : 6 free-floating dots
─────────────────────────────────────────────────────────── */

.hero-visual {
  position: relative;
  width: 442px;
  height: 442px;
}

/* ── Rings ── */
.hv-ring {
  position: absolute;
  top: 50%;
  left: 50%;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  animation: hv-pulse 7s ease-in-out infinite;
  pointer-events: none;
}

.hv-ring--1 {
  width: 442px;
  height: 442px;
  border: 1px solid rgba(var(--accent-rgb), 0.10);
  animation-duration: 9s;
  animation-delay: 0s;
}

.hv-ring--2 {
  width: 328px;
  height: 328px;
  border: 1px solid rgba(var(--secondary-rgb), 0.18);
  animation-duration: 7.5s;
  animation-delay: -2.5s;
}

.hv-ring--3 {
  width: 218px;
  height: 218px;
  border: 1px solid rgba(var(--accent-rgb), 0.28);
  animation-duration: 6s;
  animation-delay: -4s;
}

.hv-ring--4 {
  width: 117px;
  height: 117px;
  border: 1.5px solid rgba(var(--accent-rgb), 0.50);
  animation-duration: 5s;
  animation-delay: -1s;
}

/* ── Radar sweep ── */
.hv-sweep {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 442px;
  height: 442px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: conic-gradient(from 0deg,
      rgba(var(--accent-rgb), 0.07) 0deg,
      rgba(var(--accent-rgb), 0.03) 45deg,
      transparent 90deg,
      transparent 360deg);
  animation: hv-sweep 14s linear infinite;
  pointer-events: none;
}

/* ── Orbital dots ──────────────────────────────────────────
   Zero-size pivot at center; child dot offset by radius X.
   Pivot rotates → dot traces a circular orbit.
────────────────────────────────────────────────────────── */
.hv-orbit {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  pointer-events: none;
}

.hv-orbit--a {
  animation: hv-orbit-ccw 18s linear infinite;
}

.hv-orbit--b {
  animation: hv-orbit-cw 12s linear infinite;
}

.hv-orbit--c {
  animation: hv-orbit-ccw 9s linear infinite;
}

.hv-orbit__dot {
  position: absolute;
  border-radius: 50%;
  background: var(--accent-color);
  box-shadow: 0 0 6px rgba(var(--accent-rgb), 0.80);
}

.hv-orbit--a .hv-orbit__dot {
  width: 7px;
  height: 7px;
  transform: translateX(192px) translateY(-3.5px);
}

.hv-orbit--b .hv-orbit__dot {
  width: 6px;
  height: 6px;
  background: var(--secondary-color);
  box-shadow: 0 0 5px rgba(var(--secondary-rgb), 0.70);
  transform: translateX(-140px) translateY(-3px);
}

.hv-orbit--c .hv-orbit__dot {
  width: 5px;
  height: 5px;
  transform: translateX(83px) translateY(-2.5px);
}

/* ── Free-floating particles ── */
.hv-dot {
  position: absolute;
  border-radius: 50%;
  background: var(--accent-color);
  animation: hv-float 4s ease-in-out infinite;
  pointer-events: none;
}

.hv-dot--1 {
  width: 5px;
  height: 5px;
  top: 11%;
  left: 21%;
  opacity: 0.60;
  animation-duration: 4.2s;
  animation-delay: 0s;
}

.hv-dot--2 {
  width: 3px;
  height: 3px;
  top: 27%;
  right: 13%;
  opacity: 0.70;
  animation-duration: 3.5s;
  animation-delay: -1s;
  background: var(--secondary-color);
}

.hv-dot--3 {
  width: 4px;
  height: 4px;
  bottom: 17%;
  left: 14%;
  opacity: 0.55;
  animation-duration: 5.0s;
  animation-delay: -2s;
}

.hv-dot--4 {
  width: 3px;
  height: 3px;
  bottom: 24%;
  right: 9%;
  opacity: 0.65;
  animation-duration: 3.8s;
  animation-delay: -0.5s;
}

.hv-dot--5 {
  width: 5px;
  height: 5px;
  top: 61%;
  left: 7%;
  opacity: 0.45;
  animation-duration: 4.5s;
  animation-delay: -1.8s;
  background: rgba(255, 255, 255, 0.4);
}

.hv-dot--6 {
  width: 3px;
  height: 3px;
  top: 17%;
  right: 24%;
  opacity: 0.60;
  animation-duration: 3.2s;
  animation-delay: -3s;
}

/* ── Lotus center ── */
.hv-core {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 72px;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hv-lotus {
  width: 100%;
  height: 100%;
  object-fit: contain;
  animation: hv-lotus-breathe 5s ease-in-out infinite;
}

/* ── Keyframes ── */
@keyframes hv-pulse {

  0%,
  100% {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
  }

  50% {
    transform: translate(-50%, -50%) scale(1.04);
    opacity: 0.40;
  }
}

@keyframes hv-orbit-cw {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

@keyframes hv-orbit-ccw {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(-360deg);
  }
}

@keyframes hv-float {

  0%,
  100% {
    transform: translate(0, 0);
  }

  30% {
    transform: translate(3px, -7px);
  }

  70% {
    transform: translate(-2px, 4px);
  }
}

@keyframes hv-lotus-breathe {

  0%,
  100% {
    opacity: 0.85;
    filter: drop-shadow(0 0 8px rgba(var(--accent-rgb), 0.40));
  }

  50% {
    opacity: 1;
    filter: drop-shadow(0 0 18px rgba(var(--accent-rgb), 0.70));
  }
}

@keyframes hv-sweep {
  from {
    transform: translate(-50%, -50%) rotate(0deg);
  }

  to {
    transform: translate(-50%, -50%) rotate(360deg);
  }
}

/* ── Value Nodes (interactive hover labels) ─────────────────────
   4 nodes at cardinal directions, radius 110px from center.
   Positions assume .hero-visual = 340×340 → center = 170px.
   Formula: top/left = center ± radius − half-node-width (16px)
──────────────────────────────────────────────────────────────── */
.hv-value {
  position: absolute;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 5;
}

/* N / E / S / W  at r=143px — each node wanders its own path */
.hv-value--top {
  top: 62px;
  left: 205px;
  animation: hv-node-a 7s ease-in-out infinite;
}

.hv-value--right {
  top: 205px;
  left: 348px;
  animation: hv-node-b 9s ease-in-out infinite;
  animation-delay: -3s;
}

.hv-value--bottom {
  top: 348px;
  left: 205px;
  animation: hv-node-c 6s ease-in-out infinite;
  animation-delay: -5s;
}

.hv-value--left {
  top: 205px;
  left: 62px;
  animation: hv-node-d 8s ease-in-out infinite;
  animation-delay: -1.5s;
}

/* Ping ring — expands outward on loop */
.hv-value__ping {
  position: absolute;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(var(--accent-rgb), 0.45);
  animation: hv-value-ping 2.8s ease-out infinite;
  pointer-events: none;
}

.hv-value--right .hv-value__ping,
.hv-value--left .hv-value__ping {
  animation-delay: -1.4s;
}

/* Dot */
.hv-value__dot {
  position: relative;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--accent-color);
  box-shadow: 0 0 7px rgba(var(--accent-rgb), 0.65);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1),
    box-shadow 0.25s ease;
  z-index: 1;
}

.hv-value:hover .hv-value__dot {
  transform: scale(1.6);
  box-shadow: 0 0 12px rgba(var(--accent-rgb), 1);
}

/* Label */
.hv-value__label {
  position: absolute;
  white-space: nowrap;
  font-family: var(--font-main);
  font-size: 0.70rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.92);
  background: rgba(var(--primary-rgb), 0.88);
  border: 1px solid rgba(var(--accent-rgb), 0.35);
  border-radius: 4px;
  padding: 5px 11px;
  opacity: 0;
  pointer-events: none;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  transition: opacity 0.22s ease,
    transform 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Top: slides down-to-up */
.hv-value--top .hv-value__label {
  bottom: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%) translateY(6px);
}

.hv-value--top:hover .hv-value__label {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* Right: slides left-to-right */
.hv-value--right .hv-value__label {
  left: calc(100% + 10px);
  top: 50%;
  transform: translateY(-50%) translateX(-6px);
}

.hv-value--right:hover .hv-value__label {
  opacity: 1;
  transform: translateY(-50%) translateX(0);
}

/* Bottom: slides up-to-down */
.hv-value--bottom .hv-value__label {
  top: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%) translateY(-6px);
}

.hv-value--bottom:hover .hv-value__label {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* Left: slides right-to-left */
.hv-value--left .hv-value__label {
  right: calc(100% + 10px);
  top: 50%;
  transform: translateY(-50%) translateX(6px);
}

.hv-value--left:hover .hv-value__label {
  opacity: 1;
  transform: translateY(-50%) translateX(0);
}

@keyframes hv-value-ping {
  0% {
    transform: scale(1);
    opacity: 0.55;
  }

  70% {
    transform: scale(3);
    opacity: 0;
  }

  100% {
    transform: scale(3);
    opacity: 0;
  }
}

/* ── Node wander paths (each unique, ~±15px range) ── */
@keyframes hv-node-a {
  0% {
    transform: translate(0px, 0px);
  }

  20% {
    transform: translate(9px, -13px);
  }

  45% {
    transform: translate(-7px, -15px);
  }

  70% {
    transform: translate(12px, -6px);
  }

  100% {
    transform: translate(0px, 0px);
  }
}

@keyframes hv-node-b {
  0% {
    transform: translate(0px, 0px);
  }

  25% {
    transform: translate(11px, 9px);
  }

  55% {
    transform: translate(7px, -12px);
  }

  80% {
    transform: translate(14px, 5px);
  }

  100% {
    transform: translate(0px, 0px);
  }
}

@keyframes hv-node-c {
  0% {
    transform: translate(0px, 0px);
  }

  30% {
    transform: translate(-9px, 13px);
  }

  60% {
    transform: translate(11px, 9px);
  }

  85% {
    transform: translate(-5px, 15px);
  }

  100% {
    transform: translate(0px, 0px);
  }
}

@keyframes hv-node-d {
  0% {
    transform: translate(0px, 0px);
  }

  15% {
    transform: translate(-13px, -7px);
  }

  50% {
    transform: translate(-9px, 11px);
  }

  75% {
    transform: translate(-15px, 3px);
  }

  100% {
    transform: translate(0px, 0px);
  }
}

/* 2. Rating Slider */
.rating-slider {
  background: rgba(var(--primary-rgb), 0.3);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: #fff;
  padding: 0;
  overflow: hidden;
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  z-index: 20;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.slider-track {
  display: inline-flex;
  gap: 0;
  animation: scroll-slider 120s linear infinite;
}

.slider-track:hover {
  animation-play-state: paused;
}

@keyframes scroll-slider {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(-50%);
  }
}

.slider-card {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 16px 28px;
  min-width: 300px;
  position: relative;
  transition: background 0.3s ease;
}

.slider-card::after {
  content: '';
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  height: 60%;
  width: 1px;
  background: rgba(255, 255, 255, 0.12);
}

.slider-card:hover {
  background: rgba(255, 255, 255, 0.06);
}

/* Tag phân loại — 1 dòng, nền sáng hơn ticker */
.slider-tag {
  display: inline-block;
  font-size: 0.58rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: rgba(255, 255, 255, 0.6);
  white-space: nowrap;
  margin-bottom: 4px;
}

.slider-meta {
  display: flex;
  align-items: center;
  gap: 6px;
}

.slider-date {
  font-size: 0.75rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.6);
}

.slider-meta-divider {
  font-size: 0.7rem;
  color: rgba(255, 255, 255, 0.3);
}

.slider-action {
  font-size: 0.75rem;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.4);
}

.slider-entity {
  font-size: 1.2rem;
  font-weight: 800;
  color: #fff;
  line-height: 1.2;
  margin: 2px 0;
}

/* Mã trái phiếu — chỉ dùng cho Công cụ nợ */
.slider-bond {
  font-size: 0.72rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.55);
  font-family: monospace;
  letter-spacing: 0.03em;
}

.slider-bottom {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-top: auto;
  padding-top: 6px;
}

.slider-outlook {
  font-size: 0.78rem;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.5);
}

.slider-grade {
  font-size: 1rem;
  font-weight: 800;
  line-height: 1;
}

/* All grades in the slider use secondary background — change --secondary-color to update */
.slider-card .slider-grade {
  color: #fff;
  background: var(--secondary-color);
  padding: 2px 8px;
  border-radius: 4px;
  font-weight: 600;
}

.grade-aaa {
  color: var(--grade-aaa);
}

.grade-aa {
  color: var(--grade-aa);
}

.grade-a {
  color: var(--grade-a);
}

.grade-ccc {
  color: var(--grade-ccc);
}

/* 3. Research Section - Storytelling Layout */
.research-story {
  padding: 60px 0;
  background: var(--bg-main);
  position: relative;
}

.research-story-layout {
  display: flex;
  gap: 24px;
  align-items: flex-start;
}

.research-sticky-col {
  flex: 1;
  position: sticky;
  top: 80px;
  height: fit-content;
}

.research-scroll-col {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* Research Grid Layout: 1 large + 3 small */
.research-grid-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  align-items: stretch;
}

.research-card-v2.featured-large {
  grid-row: 1 / 2;
  display: flex;
  flex-direction: column;
}

.research-card-v2.featured-large .research-card-image {
  height: 260px;
  flex-shrink: 0;
}

.research-card-v2.featured-large .research-card-body {
  flex: 1;
  padding: 24px;
}

.research-card-v2.featured-large .research-card-title {
  font-size: 1.4rem;
}

.research-side-col {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.research-card-v2.compact {
  flex: 1;
}

.research-card-v2.compact .research-card-body {
  padding: 16px 20px;
}

.research-card-v2.compact .research-card-title {
  font-size: 1rem;
  margin-bottom: 4px;
}

.research-card-v2.compact .research-card-date {
  margin-top: auto;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 40px;
  border-bottom: 2px solid var(--primary-color);
  padding-bottom: 16px;
}

.section-title {
  font-family: var(--font-serif);
  font-size: 2.5rem;
  color: var(--primary-color);
  margin: 0;
}

.find-out-more {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--secondary-color);
  letter-spacing: 0.5px;
}

.research-card-v2 {
  background: var(--surface-color);
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border-color);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s ease, border-color 0.4s ease;
  text-decoration: none;
  display: flex;
  flex-direction: column;
}

.research-card-v2:hover {
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
  transform: translateY(-8px);
  border-color: rgba(var(--secondary-rgb), 0.3);
}

.research-card-image {
  position: relative;
  width: 100%;
  height: 200px;
  overflow: hidden;
}

.research-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.research-card-v2:hover .research-card-image img {
  transform: scale(1.05);
}

.research-card-image-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 60%;
  background: linear-gradient(to top, rgba(var(--primary-rgb), 0.6), transparent);
}

.research-card-body {
  padding: 16px 20px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.research-card-meta {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-bottom: 12px;
}

.research-card-tag {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--secondary-color);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.research-card-sector {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 500;
}

.research-card-sector::before {
  content: '•';
  margin-right: 8px;
  color: var(--border-color);
}

.research-card-title {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  color: var(--primary-color);
  margin: 0 0 8px;
  line-height: 1.4;
  font-weight: 700;
}

.research-card-v2.featured .research-card-title {
  font-size: 1.35rem;
}

.research-card-excerpt {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.research-card-date {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 20px;
  font-weight: 500;
}

/* 4. Stats Section Cinematic */
.stats-section-dark {
  background: var(--surface-color);
  padding: 48px 0;
}

.stats-inner-box {
  position: relative;
  background: linear-gradient(135deg,
      rgba(var(--secondary-rgb), 0.12) 0%,
      rgba(var(--secondary-rgb), 0.06) 50%,
      rgba(var(--accent-rgb), 0.08) 100%);
  border-radius: 20px;
  padding: 56px 48px;
  overflow: hidden;
  border: 1px solid rgba(var(--secondary-rgb), 0.2);
  box-shadow: 0 4px 32px rgba(var(--secondary-rgb), 0.08);
}

/* Animated shimmer layer */
.stats-inner-box::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg,
      transparent 20%,
      rgba(var(--secondary-rgb), 0.07) 50%,
      transparent 80%);
  background-size: 200% 100%;
  animation: stats-shimmer 4s ease-in-out infinite;
  z-index: 1;
  pointer-events: none;
}


@keyframes stats-shimmer {
  0% {
    background-position: -100% 0;
  }

  100% {
    background-position: 200% 0;
  }
}

.stats-bg-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.5;
  z-index: 1;
  pointer-events: none;
  animation: stats-glow-float 6s ease-in-out infinite;
}

.glow-1 {
  width: 300px;
  height: 300px;
  background: rgba(var(--secondary-rgb), 0.4);
  top: -60px;
  left: -40px;
  animation-delay: 0s;
}

.glow-2 {
  width: 320px;
  height: 320px;
  background: rgba(var(--accent-rgb), 0.35);
  bottom: -60px;
  right: -40px;
  animation-delay: 3s;
}

@keyframes stats-glow-float {

  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }

  50% {
    transform: translate(20px, -20px) scale(1.1);
  }
}

.stats-section-header {
  text-align: center;
  margin-bottom: 48px;
  position: relative;
  z-index: 2;
}

.stats-heading-dark {
  font-family: var(--font-serif);
  font-size: 2rem;
  text-align: center;
  margin-bottom: 12px;
  color: var(--primary-color);
  font-weight: 700;
}

.stats-subheading-dark {
  font-size: 0.95rem;
  color: var(--text-muted);
  max-width: 520px;
  margin: 0 auto;
  line-height: 1.7;
}

.stats-grid-cinematic {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-template-rows: auto;
  gap: 0 20px;
  align-items: start;
  position: relative;
  z-index: 2;
}

.stat-cinematic-card {
  text-align: center;
  padding: 0 24px;
  border-left: 1px solid rgba(var(--secondary-rgb), 0.15);
  grid-row: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
}

.stat-cinematic-card:first-child {
  border-left: none;
}

.stat-number-cinematic {
  font-family: var(--font-serif);
  font-size: 3.5rem;
  font-weight: 700;
  background: linear-gradient(135deg, var(--secondary-color) 0%, var(--accent-color) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1.1;
  margin-bottom: 8px;
}

.stat-prelabel-cinematic {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 8px;
  line-height: 1.4;
}

.stat-desc-cinematic {
  font-size: 0.9rem;
  color: var(--text-muted);
  max-width: 250px;
  margin: 0 auto;
  line-height: 1.6;
}

.stat-unit-cinematic {
  display: block;
  font-size: 1.1rem;
  font-weight: 600;
  font-family: var(--font-main);
  margin-top: 2px;
}

/* 5. Solutions Section Glassmorphism */
.solutions-scroll-section {
  padding: 60px 0;
  background: var(--surface-color);
  position: relative;
}

.solutions-split-layout {
  display: flex;
  gap: 32px;
  align-items: flex-start;
}

.solutions-sticky-sidebar {
  flex: 0 0 35%;
  position: sticky;
  top: 120px;
}

.solutions-intro {
  font-size: 1.1rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-top: 2rem;
}

.solutions-scroll-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.solutions-group-glass {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.solutions-group-label-glass {
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-muted);
  padding-bottom: 12px;
  border-bottom: 2px solid rgba(var(--secondary-rgb), 0.1);
}

.solutions-cards-vertical {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.solution-card-glass {
  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: var(--radius-md);
  padding: 24px;
  text-decoration: none;
  display: flex;
  align-items: flex-start;
  gap: 16px;
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
}

.solution-card-glass:hover {
  transform: translateX(8px);
  background: rgba(255, 255, 255, 0.9);
  border-color: var(--secondary-color);
  box-shadow: 0 12px 30px rgba(var(--secondary-rgb), 0.08);
}

.solution-card-glass.highlighted {
  border-left: 4px solid var(--secondary-color);
}

/* Featured Solutions Group */
.solutions-group-featured {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
  border-radius: var(--radius-lg);
  padding: 32px;
  position: relative;
  overflow: hidden;
}

.solutions-group-featured::before {
  content: '';
  position: absolute;
  top: -50px;
  right: -50px;
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, rgba(var(--accent-rgb), 0.15), transparent 70%);
  pointer-events: none;
}

.solutions-group-featured .solutions-group-label-glass {
  color: var(--accent-color);
  border-bottom-color: rgba(var(--accent-rgb), 0.25);
  font-size: 0.95rem;
  letter-spacing: 1.5px;
}

.solutions-group-featured .solution-card-glass {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(12px);
}

.solutions-group-featured .solution-card-glass:hover {
  background: rgba(255, 255, 255, 0.14);
  border-color: var(--accent-color);
  box-shadow: 0 12px 30px rgba(var(--accent-rgb), 0.1);
}

.solutions-group-featured .solution-card-icon {
  background: rgba(var(--accent-rgb), 0.15);
  color: var(--accent-color);
  box-shadow: none;
}

.solutions-group-featured .solution-card-title {
  color: #fff;
}

.solutions-group-featured .solution-card-desc {
  color: rgba(255, 255, 255, 0.7);
}

.solutions-group-featured .solution-card-arrow-glass {
  color: var(--accent-color);
}

.solution-card-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--secondary-color);
  flex-shrink: 0;
}

.solution-card-content {
  flex: 1;
}

.solution-card-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--primary-color);
  margin: 0 0 6px;
}

.solution-card-desc {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin: 0;
}

.solution-card-arrow-glass {
  font-size: 1.5rem;
  color: var(--secondary-color);
  opacity: 0;
  transform: translateX(-10px);
  transition: all 0.3s ease;
  align-self: center;
}

.solution-card-glass:hover .solution-card-arrow-glass {
  opacity: 1;
  transform: translateX(0);
}

/* 6. Contact Section Edge-to-Edge */
.contact-elevated-section {
  padding: 60px 0 80px;
  background: var(--surface-color);
}

.contact-banner-wrapper {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  padding: 48px 24px;
  text-align: center;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
  margin-bottom: 32px;
}

.contact-banner-bg {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
  z-index: 1;
}

.contact-banner-bg::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('../assets/lotte.jpg') no-repeat center center;
  background-size: cover;
  opacity: 0.15;
  mix-blend-mode: overlay;
}

.contact-banner-content {
  position: relative;
  z-index: 2;
  color: #fff;
  margin: 0 auto;
}

.contact-banner-heading {
  font-family: var(--font-serif);
  font-size: 2rem;
  color: #fff;
  margin-bottom: 12px;
}

.contact-banner-text {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 24px;
}

.btn-glow {
  box-shadow: 0 0 20px rgba(var(--accent-rgb), 0.4);
}

.contact-secondary-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}

.contact-glass-panel {
  background: #fff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 24px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}

.contact-glass-panel:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
}

.cgp-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 16px;
}

.cgp-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: rgba(var(--secondary-rgb), 0.08);
  color: var(--secondary-color);
  display: flex;
  align-items: center;
  justify-content: center;
}

.cgp-header h3 {
  margin: 0;
  font-size: 1.3rem;
  color: var(--primary-color);
}

.cgp-text {
  color: var(--text-muted);
  font-size: 1rem;
  margin-bottom: 24px;
  flex: 1;
}

.cgp-action {
  margin-top: auto;
}

/* ===== FORMS (Design System) ===== */
.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 16px;
}

.form-group.full-width {
  grid-column: 1 / -1;
}

.form-label {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--primary-color);
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.form-label .required {
  color: var(--error-color);
}

.form-input {
  padding: 12px 14px;
  border: 1.5px solid var(--border-color);
  border-radius: var(--radius-sm);
  font-family: var(--font-main);
  font-size: 0.95rem;
  color: var(--text-dark);
  background: #fff;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  width: 100%;
}

.form-input::placeholder {
  color: var(--text-subtle);
}

.form-input:focus {
  border-color: var(--secondary-color);
  box-shadow: 0 0 0 3px rgba(var(--secondary-rgb), 0.1);
}

.form-input.error {
  border-color: var(--error-color);
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}

.form-input.success {
  border-color: var(--grade-aaa);
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1);
}

.form-textarea {
  resize: vertical;
  min-height: unset;
}

.form-helper {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.form-helper.error {
  color: var(--error-color);
}

.form-helper.success {
  color: #22c55e;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.checkbox-label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.88rem;
  color: var(--text-dark);
  cursor: pointer;
  user-select: none;
}

.checkbox-label input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--secondary-color);
  cursor: pointer;
  flex-shrink: 0;
}

/* ===== CONTACT GLASS PANEL NEWSLETTER ===== */
.cgp-form {
  display: flex;
  gap: 12px;
}

.cgp-form input {
  flex: 1;
  width: auto;
}

.cgp-form button {
  padding: 0 20px;
  font-size: 1.2rem;
}

/* ===== FORM SUBMIT SUCCESS ===== */
@keyframes form-toast-in {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.form-success-toast {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  font-weight: 600;
  color: #16a34a;
  margin-top: 12px;
  animation: form-toast-in 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.form-success-toast svg {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
}

.subscribe-success {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  font-weight: 600;
  color: #16a34a;
  padding: 10px 0;
  animation: form-toast-in 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.subscribe-success svg {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
}

/* ===== CONTACT MODAL ===== */
.contact-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(var(--primary-rgb), 0.6);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: var(--z-modal);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.35s ease, visibility 0.35s ease;
  padding: 24px;
}

.contact-modal-overlay.active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.media-modal-overlay {
  z-index: 10001;
}

/* ===== AUTH MODAL ===== */
.nav-icon-btn.active {
  color: #fff;
  background: rgba(var(--secondary-rgb), 0.28);
}

.auth-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(var(--primary-rgb), 0.64);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: var(--z-modal-top);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.35s ease, visibility 0.35s ease;
  padding: 24px;
}

.auth-modal-overlay.active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.auth-modal-overlay[aria-hidden="true"] {
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

.auth-modal {
  position: relative;
  width: 100%;
  max-width: 500px;
  max-height: min(88vh, 760px);
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: #fff;
  border: 1px solid rgba(var(--secondary-rgb), 0.14);
  box-shadow: 0 30px 60px rgba(var(--primary-rgb), 0.24), inset 0 1px 0 rgba(255, 255, 255, 0.6);
  transform: translateY(24px) scale(0.97);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
}

.auth-modal > .auth-modal-header,
.auth-modal > .auth-tabs {
  flex-shrink: 0;
  padding-left: 26px;
  padding-right: 26px;
}

.auth-modal > .auth-modal-header {
  padding-top: 26px;
}

.auth-modal > .auth-tabs {
  padding-bottom: 0;
}

.auth-modal > .auth-panels {
  flex: 1;
  overflow-y: auto;
  padding: 0 26px 26px;
}

.auth-modal-overlay.active .auth-modal {
  transform: translateY(0) scale(1);
}

.auth-modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 36px;
  height: 36px;
  padding: 0;
  border: none;
  background: var(--surface-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--text-muted);
  transition: var(--transition);
}

.auth-modal-close:hover {
  background: #e2e8f0;
  color: var(--primary-color);
}

.auth-modal-header {
  margin-bottom: 22px;
  padding-right: 34px;
}

.auth-modal-badge {
  display: inline-block;
  margin-bottom: 10px;
  padding: 5px 12px;
  border-radius: 999px;
  background: rgba(var(--secondary-rgb), 0.12);
  color: var(--secondary-color);
  font-size: 0.73rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.auth-modal-title {
  margin: 0 0 8px;
  font-family: var(--font-serif);
  font-size: 1.6rem;
  color: var(--primary-color);
}

.auth-modal-subtitle {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.92rem;
  line-height: 1.6;
}

.auth-tabs {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-bottom: 20px;
}

.auth-panels {
  display: grid;
  position: relative;
  margin-top: 2px;
  align-items: start;
}

.auth-tab-btn {
  padding: 12px 10px;
  border-radius: 10px;
  border: 1px solid var(--border-color);
  background: var(--surface-color);
  color: var(--text-muted);
  font-size: 0.92rem;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
}

.auth-tab-btn:hover {
  border-color: var(--secondary-color);
  color: var(--primary-color);
}

.auth-tab-btn.active {
  border-color: var(--secondary-color);
  background: var(--secondary-color);
  color: #fff;
  box-shadow: 0 8px 18px rgba(var(--secondary-rgb), 0.25);
}

.auth-tab-panel {
  grid-area: 1 / 1;
  position: absolute;
  inset: 0;
  display: block;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  overflow: visible;
  transform: translateY(6px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
}

.auth-tab-panel.active {
  position: relative;
  inset: auto;
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.auth-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.auth-form-helper {
  display: flex;
  justify-content: flex-end;
  margin-top: -4px;
}

.auth-forgot-link {
  font-size: 0.82rem;
  color: var(--secondary-color);
  text-decoration: none;
  font-weight: 600;
}

.auth-forgot-link:hover {
  text-decoration: underline;
}

.auth-back-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: none;
  border: none;
  padding: 0;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  margin-bottom: 16px;
  transition: color 0.15s ease;
}

.auth-back-btn:hover {
  color: var(--primary-color);
}

.auth-forgot-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 20px;
  line-height: 1.55;
}

.auth-forgot-success {
  text-align: center;
  padding: 16px 0 8px;
}

.auth-forgot-success-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: rgba(var(--secondary-rgb), 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  color: var(--secondary-color);
}

.auth-forgot-success-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 10px;
}

.auth-forgot-success-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 24px;
}

.auth-form-error {
  min-height: 16px;
  margin: -2px 0 0;
  font-size: 0.82rem;
  color: #dc2626;
}

.auth-captcha-block {
  margin-top: 2px;
  line-height: 0;
}

.auth-captcha-block .cf-turnstile,
.contact-form-captcha .cf-turnstile {
  display: block;
  max-width: 300px;
}

.auth-captcha-block iframe,
.contact-form-captcha iframe {
  display: block;
}

.auth-recaptcha-demo {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 10px 12px;
  border: 1px solid #d3d3d3;
  border-radius: 4px;
  background: #f9f9f9;
}

.auth-recaptcha-check {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.88rem;
  color: #4a4a4a;
  cursor: pointer;
}

.auth-recaptcha-check input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.auth-recaptcha-box {
  width: 24px;
  height: 24px;
  border: 2px solid #c1c1c1;
  border-radius: 3px;
  background: #fff;
  position: relative;
  flex-shrink: 0;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.auth-recaptcha-check:hover .auth-recaptcha-box {
  border-color: #9aa0a6;
}

.auth-recaptcha-check input:checked+.auth-recaptcha-box {
  border-color: #34a853;
  background: #34a853;
}

.auth-recaptcha-check input:checked+.auth-recaptcha-box::after {
  content: '';
  position: absolute;
  left: 7px;
  top: 3px;
  width: 6px;
  height: 11px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.auth-recaptcha-brand {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
  line-height: 1.2;
}

.auth-recaptcha-logo {
  font-size: 0.72rem;
  font-weight: 700;
  color: #555;
}

.auth-recaptcha-terms {
  font-size: 0.62rem;
  color: #7a7a7a;
}

.auth-captcha-error {
  min-height: 16px;
  margin: 4px 0 0;
  font-size: 0.82rem;
  color: #dc2626;
}

.auth-submit-btn {
  margin-top: 6px;
  width: 100%;
  border-radius: var(--radius-sm);
  border: 2px solid var(--primary-color);
  background: var(--primary-color);
  color: #fff;
  font-size: 0.9rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 13px 18px;
  cursor: pointer;
  transition: all 0.25s ease;
}

.auth-submit-btn:hover {
  background: var(--secondary-color);
  border-color: var(--secondary-color);
  transform: translateY(-1px);
  box-shadow: 0 10px 22px rgba(var(--secondary-rgb), 0.24);
}

.contact-modal {
  background: #fff;
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 640px;
  max-height: min(88vh, 820px);
  overflow: hidden;
  min-height: 0;
  touch-action: pan-y;
  display: flex;
  flex-direction: column;
  position: relative;
  box-shadow: 0 32px 64px rgba(0, 0, 0, 0.2), 0 0 0 1px rgba(0, 0, 0, 0.04);
  transform: translateY(24px) scale(0.97);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.contact-modal-header {
  flex-shrink: 0;
  padding: 40px 36px 0;
}

.contact-modal-form {
  overflow-y: auto;
  min-height: 0;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  touch-action: pan-y;
  padding: 0 36px 36px;
  flex: 1;
}

.contact-media-contact {
  flex-shrink: 0;
  padding: 0 36px 36px;
}

.contact-modal-overlay.active .contact-modal {
  transform: translateY(0) scale(1);
}

.contact-modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 36px;
  height: 36px;
  padding: 0;
  border: none;
  background: var(--surface-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--text-muted);
  transition: var(--transition);
}

.contact-modal-close:hover {
  background: #e2e8f0;
  color: var(--primary-color);
}

.contact-modal-header {
  text-align: center;
  margin-bottom: 28px;
}

.contact-modal-icon {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(var(--secondary-rgb), 0.08), rgba(var(--accent-rgb), 0.08));
  color: var(--secondary-color);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
}

.contact-modal-title {
  font-family: var(--font-serif);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 8px;
}

.contact-modal-subtitle {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin: 0;
  line-height: 1.5;
}

.contact-modal-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.contact-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.contact-form-agreement {
  display: flex;
  align-items: center;
}

.contact-policy-link {
  color: var(--secondary-color);
  font-weight: 600;
  text-decoration: underline;
}

.contact-form-captcha {
  margin: 4px 0;
}

.cf-turnstile-demo {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  background: #fafafa;
  border: 1px solid #e0e0e0;
  border-radius: 4px;
  padding: 10px 14px;
  width: 300px;
  gap: 16px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}

.cf-turnstile-demo-left {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.88rem;
  color: #444;
}

.cf-turnstile-demo-checkbox {
  width: 22px;
  height: 22px;
  border: 2px solid #bbb;
  border-radius: 3px;
  background: #fff;
  flex-shrink: 0;
}

.cf-turnstile-demo-right {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.cf-turnstile-demo-brand {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 1px;
}

.cf-turnstile-demo-brand span:first-child {
  font-size: 0.68rem;
  font-weight: 700;
  color: #F38020;
  letter-spacing: 0.01em;
}

.cf-turnstile-demo-brand span:last-child {
  font-size: 0.58rem;
  color: #999;
}

/* ===== SERVICE MULTI-SELECT ===== */
.svc-select {
  position: relative;
}

.svc-select-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid var(--border-color);
  border-radius: var(--radius-sm);
  background: #fff;
  font-family: var(--font-main);
  font-size: 0.95rem;
  color: var(--text-subtle);
  cursor: pointer;
  text-align: left;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  outline: none;
  gap: 8px;
}

.svc-select-trigger:hover,
.svc-select-trigger[aria-expanded="true"] {
  border-color: var(--secondary-color);
  box-shadow: 0 0 0 3px rgba(var(--secondary-rgb), 0.1);
}

.svc-select-text {
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.svc-select-text.has-value {
  color: var(--text-dark);
}

.svc-select-arrow {
  flex-shrink: 0;
  transition: transform 0.2s ease;
  color: var(--text-muted);
}

.svc-select-trigger[aria-expanded="true"] .svc-select-arrow {
  transform: rotate(180deg);
}

.svc-select-dropdown {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  background: #fff;
  border: 1.5px solid var(--border-color);
  border-radius: var(--radius-sm);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  z-index: 200;
  overflow: hidden;
  display: none;
}

.svc-select-dropdown.open {
  display: block;
}

.svc-option {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 14px;
  cursor: pointer;
  font-size: 0.92rem;
  color: var(--text-dark);
  transition: background 0.15s ease;
  user-select: none;
}

.svc-option:hover {
  background: var(--bg-light, #f8f9fa);
}

.svc-option input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
  pointer-events: none;
}

.svc-option-check {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  border: 1.5px solid var(--border-color);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s ease, border-color 0.15s ease;
  color: transparent;
}

.svc-option input[type="checkbox"]:checked ~ .svc-option-check {
  background: var(--secondary-color);
  border-color: var(--secondary-color);
  color: #fff;
}

.svc-option + .svc-option {
  border-top: 1px solid var(--border-color);
}

.contact-modal-submit {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 14px 24px;
  background: var(--primary-color);
  color: #fff;
  border: 2px solid var(--primary-color);
  border-radius: var(--radius-sm);
  font-family: var(--font-main);
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.3s ease;
}

.contact-modal-submit:hover {
  background: var(--secondary-color);
  border-color: var(--secondary-color);
  box-shadow: 0 8px 24px rgba(var(--secondary-rgb), 0.25);
  transform: translateY(-1px);
}

.contact-modal-submit:active {
  transform: translateY(0);
}

.contact-modal-submit:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none;
}

.contact-modal-submit.success {
  background: var(--success-color);
  border-color: var(--grade-aaa);
}

.contact-modal-hotline {
  text-align: center;
  font-size: 0.88rem;
  color: var(--text-muted);
  margin: 0;
  font-style: italic;
}

.contact-modal-hotline a {
  color: var(--secondary-color);
  font-weight: 700;
  font-style: normal;
}

/* Contact modal scrollbar */
.contact-modal::-webkit-scrollbar {
  width: 6px;
}

.contact-modal::-webkit-scrollbar-track {
  background: transparent;
}

.contact-modal::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 3px;
}

.contact-media-note {
  margin: 0 0 16px;
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.6;
  text-align: center;
}

.contact-media-contact {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px dashed var(--border-color);
  font-size: 0.85rem;
  color: var(--text-muted);
}

.contact-media-contact p {
  margin: 0;
}

.contact-media-contact a {
  color: var(--secondary-color);
  font-weight: 600;
}

.contact-media-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.contact-media-link svg {
  flex-shrink: 0;
  opacity: 0.8;
}

.contact-media-sep {
  margin: 0 6px;
  opacity: 0.4;
}

/* Contact modal responsive */
@media (max-width: 640px) {

  .auth-modal-overlay,
  .contact-modal-overlay {
    padding: 18px 14px;
  }

  .auth-modal {
    border-radius: var(--radius-md);
    width: min(100%, 440px);
  }

  .auth-modal-title {
    font-size: 1.35rem;
  }

  .auth-modal-subtitle {
    font-size: 0.88rem;
  }

  .auth-tab-btn {
    font-size: 0.86rem;
  }

  .auth-recaptcha-demo {
    padding: 9px 10px;
  }

  .auth-recaptcha-check {
    font-size: 0.82rem;
    gap: 8px;
  }

  .auth-recaptcha-brand {
    display: none;
  }

  .auth-form-row {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .contact-modal {
    width: min(100%, 560px);
    max-height: calc(100dvh - 56px);
    border-radius: var(--radius-md);
  }

  .contact-modal .contact-modal-header {
    padding: 22px 14px 0;
  }

  .contact-modal .contact-modal-form,
  .contact-modal .contact-media-contact {
    padding: 0 14px 18px;
  }

  .contact-form-row {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .contact-modal-title {
    font-size: 1.3rem;
  }

  .recaptcha-placeholder {
    max-width: 100%;
    width: 100%;
  }
}

/* Animations Scroll Reveal */
.reveal-up {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-up.active {
  opacity: 1;
  transform: translateY(0);
}

/* Responsive Overrides */

/* Tablet */
@media (max-width: 992px) {
  .hero-content {
    flex-direction: column;
    text-align: center;
  }

  .hero-left {
    flex: none;
    max-width: 100%;
  }

  .hero-tagline {
    max-width: 100%;
  }

  .hero-cta-group {
    justify-content: center;
  }

  .hero-visual {
    width: 325px;
    height: 325px;
  }

  /* Value nodes re-positioned for 325px container (center=163, r=104) */
  .hv-value--top {
    top: 43px;
    left: 147px;
  }

  .hv-value--right {
    top: 147px;
    left: 251px;
  }

  .hv-value--bottom {
    top: 251px;
    left: 147px;
  }

  .hv-value--left {
    top: 147px;
    left: 43px;
  }

  .hero-title {
    font-size: 3rem;
  }

  /* Research grid */
  .research-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .research-card-v2.featured {
    grid-column: 1 / -1;
    grid-row: auto;
  }

  .research-card-v2.featured .research-card-image {
    height: 200px;
  }

  /* Stats */
  .stats-grid-v2 {
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
  }

  /* Solutions */
  .solutions-cards {
    grid-template-columns: 1fr;
  }

  /* Contact */
  .contact-cards {
    grid-template-columns: 1fr;
  }

  .footer-links-row {
    gap: 24px;
  }

  .footer-info-row {
    gap: 40px;
  }
}

/* Mobile landscape / small tablet */
@media (max-width: 768px) {
  .container {
    padding: 0 20px;
  }

  /* Hero */
  .hero-title {
    font-size: 2.4rem;
  }

  .hero-tagline {
    font-size: 0.95rem;
    margin-bottom: 32px;
  }

  .hero-content {
    padding-top: 80px;
    padding-bottom: 80px;
    margin-top: 0;
    justify-content: center;
  }

  .hero-cta-group {
    flex-direction: column;
    gap: 12px;
  }

  .hero-right {
    display: none;
  }

  /* Slider */
  .slider-card {
    min-width: 200px;
    padding: 12px 20px;
  }

  .slider-entity {
    font-size: 1rem;
  }

  .slider-grade {
    font-size: 1.2rem;
  }

  /* Research */
  .research-section {
    padding: 48px 0;
  }

  .section-title {
    font-size: 2rem;
  }

  .research-grid {
    grid-template-columns: 1fr;
  }

  .research-card-v2.featured .research-card-image {
    height: 180px;
  }

  /* Stats */
  .stats-section {
    padding: 56px 0;
  }

  .stats-heading {
    font-size: 1.8rem;
    margin-bottom: 36px;
  }

  .stats-grid-v2 {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .stat-card {
    padding: 28px 20px;
  }

  .stat-number-v2 {
    font-size: 2.8rem;
  }

  /* Solutions */
  .solutions-section {
    padding: 56px 0;
  }

  .solutions-intro {
    font-size: 1rem;
  }

  /* Contact */
  .contact-section {
    padding: 56px 0;
  }

  .contact-card {
    padding: 28px 24px;
  }

  /* Footer */
  .footer-top {
    padding: 0 0 24px;
  }

  .footer-links-row {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    padding: 24px 0;
  }

  .footer-info-row {
    flex-direction: column;
    gap: 24px;
  }

  .footer-email-input {
    width: 100%;
  }

  .footer-bottom {
    font-size: 0.75rem;
  }
}

/* Mobile portrait */
@media (max-width: 480px) {

  /* Hero */
  .hero-title {
    font-size: 2rem;
  }

  .hero-tagline {
    font-size: 0.9rem;
    max-width: 100%;
    margin-bottom: 28px;
  }

  .hero-content {
    padding-top: 80px;
  }

  /* Research */
  .section-header {
    flex-direction: column;
    gap: 8px;
    align-items: flex-start;
  }

  .research-card-title {
    font-size: 1rem;
  }

  /* Stats */
  .stat-number-v2 {
    font-size: 2.2rem;
  }

  /* Subscribe */
  .subscribe-form {
    flex-direction: column;
  }

  /* Footer */
  .footer-links-row {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 20px 0;
  }

  .footer-logo {
    height: 36px;
  }

  .footer-brand {
    gap: 16px;
  }

  .footer-wave {
    height: 50px;
  }
}

/* Very small screens */
@media (max-width: 360px) {
  .hero-title {
    font-size: 1.75rem;
  }

  .navbar-logo {
    height: 30px;
  }
}

/* =========================================
   MOBILE OPTIMIZATION - 8px SCALE SYSTEM
   ========================================= */

/* --- Mobile: Navbar & Mobile Menu --- */
@media (max-width: 768px) {
  .nav-mobile-toggle {
    padding: 8px;
  }

  /* --- Mobile: Hero Section --- */
  .hero-section {
    min-height: 100vh;
    min-height: 100dvh;
  }

  .hero-content {
    padding-top: 72px;
    padding-bottom: 80px;
    gap: 24px;
    margin-top: 0;
    justify-content: center;
  }

  .hero-title {
    font-size: 2rem;
    margin-bottom: 16px;
  }

  .hero-tagline {
    font-size: 0.9rem;
    margin-bottom: 24px;
    line-height: 1.6;
  }

  .hero-cta-group {
    flex-direction: column;
    gap: 8px;
    align-items: stretch;
  }

  .hero-cta.btn-primary,
  .hero-cta.btn-outline {
    padding: 12px 24px;
    font-size: 0.9rem;
    border-radius: 8px;
    text-align: center;
    width: 100%;
  }

  /* --- Mobile: Rating Slider --- */
  .slider-card {
    min-width: 240px;
    padding: 12px 16px;
    border-radius: 0;
  }

  .slider-entity {
    font-size: 0.9rem;
    min-height: auto;
  }

  .slider-grade {
    font-size: 1.1rem;
  }

  /* --- Mobile: Research Section --- */
  .research-story {
    padding: 40px 0;
  }

  .research-grid-layout {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .research-card-v2 {
    border-radius: 16px;
  }

  .research-card-v2.featured-large .research-card-image {
    height: 180px;
    border-radius: 16px 16px 0 0;
  }

  .research-card-v2.featured-large .research-card-body {
    padding: 16px;
  }

  .research-card-v2.featured-large .research-card-title {
    font-size: 1.15rem;
  }

  .research-card-v2.compact .research-card-body {
    padding: 16px;
  }

  .research-card-v2.compact .research-card-title {
    font-size: 0.95rem;
  }

  .section-header {
    margin-bottom: 24px;
    padding-bottom: 12px;
  }

  .section-title {
    font-size: 1.75rem;
  }

  /* --- Mobile: Stats Section --- */
  .stats-section-dark {
    padding: 24px 0;
  }

  .stats-inner-box {
    padding: 36px 24px;
    border-radius: 16px;
  }

  .stats-heading-dark {
    font-size: 1.75rem;
    margin-bottom: 8px;
  }

  .stats-subheading-dark {
    font-size: 0.9rem;
    line-height: 1.6;
  }

  .stats-section-header {
    margin-bottom: 32px;
  }

  .stats-grid-cinematic {
    display: flex;
    flex-direction: column;
    gap: 24px;
    align-items: center;
  }

  .stat-cinematic-card {
    width: 100%;
    display: block;
    border-left: none;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding: 24px 16px;
    border-radius: 0;
  }

  .stat-cinematic-card:first-child {
    border-top: none;
  }

  .stat-number-cinematic {
    font-size: 2.5rem;
  }

  .stat-unit-cinematic {
    font-size: 1rem;
  }

  .stat-desc-cinematic {
    font-size: 0.88rem;
    max-width: 100%;
  }

  /* --- Mobile: Solutions Section --- */
  .solutions-scroll-section {
    padding: 40px 0;
  }

  .solutions-split-layout {
    flex-direction: column;
    gap: 24px;
  }

  .solutions-sticky-sidebar {
    flex: none;
    position: static;
    width: 100%;
  }

  .solutions-title {
    font-size: 1.75rem;
  }

  .solutions-intro {
    font-size: 0.95rem;
  }

  .solutions-scroll-content {
    gap: 24px;
  }

  .solutions-group-glass {
    gap: 16px;
  }

  .solutions-group-featured {
    border-radius: 16px;
    padding: 24px 16px;
  }

  .solutions-group-label-glass {
    font-size: 0.8rem;
    padding-bottom: 8px;
  }

  .solutions-cards-vertical {
    gap: 16px;
  }

  .solution-card-glass {
    border-radius: 16px;
    padding: 16px;
    gap: 12px;
    flex-direction: row;
    align-items: flex-start;
  }

  .solution-card-icon {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    flex-shrink: 0;
  }

  .solution-card-title {
    font-size: 1rem;
  }

  .solution-card-desc {
    font-size: 0.88rem;
    line-height: 1.5;
  }

  .solution-card-arrow-glass {
    display: none;
  }

  /* --- Mobile: Contact Section --- */
  .contact-elevated-section {
    padding: 40px 0 56px;
  }

  .contact-banner-wrapper {
    border-radius: 16px;
    padding: 32px 16px;
    margin-bottom: 16px;
  }

  .contact-banner-heading {
    font-size: 1.5rem;
  }

  .contact-banner-text {
    font-size: 0.9rem;
    margin-bottom: 16px;
  }

  .contact-banner-wrapper .btn {
    padding: 12px 24px;
    font-size: 0.9rem;
    border-radius: 8px;
    width: 100%;
  }

  .contact-secondary-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .contact-glass-panel {
    border-radius: 16px;
    padding: 16px;
  }

  .cgp-header {
    gap: 12px;
    margin-bottom: 8px;
  }

  .cgp-icon {
    width: 40px;
    height: 40px;
    border-radius: 8px;
  }

  .cgp-header h3 {
    font-size: 1.1rem;
  }

  .cgp-text {
    font-size: 0.88rem;
    margin-bottom: 16px;
  }

  .cgp-form {
    gap: 8px;
  }

  .cgp-form input {
    padding: 10px 16px;
    border-radius: 8px;
    font-size: 0.9rem;
  }

  .cgp-form button {
    padding: 0 16px;
    border-radius: 8px;
  }

  /* --- Mobile: Footer --- */
  footer {
    padding: 72px 0 20px;
  }

  .footer-top-r1 {
    grid-template-columns: 1fr;
    gap: 12px;
    margin-bottom: 12px;
  }

  .footer-dashed-line {
    grid-column: auto;
  }

  .footer-top-r2 {
    grid-template-columns: 1fr;
    gap: 12px;
    padding-bottom: 18px;
    margin-bottom: 18px;
  }

  .footer-col-info {
    grid-column: auto;
  }

  .footer-logo {
    height: 40px;
  }

  .footer-address-text {
    font-size: 0.88rem;
  }

  .footer-contact-inline {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }

  .f-divider {
    display: none;
  }

  .footer-inline-item {
    font-size: 0.88rem;
  }

  .footer-links-row {
    grid-template-columns: 1fr 1fr;
    gap: 18px 14px;
    margin-bottom: 18px;
  }

  .footer-heading {
    font-size: 0.88rem;
    margin-bottom: 8px;
  }

  .footer-links a {
    font-size: 0.82rem;
  }

  .footer-links li {
    margin-bottom: 6px;
  }

  .footer-bottom {
    padding-top: 12px;
    font-size: 0.75rem;
  }

  /* --- Mobile: Contact Modal --- */
  .auth-modal-overlay,
  .contact-modal-overlay {
    padding: 16px;
  }

  .auth-modal-overlay {
    align-items: flex-start;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  .contact-modal-overlay {
    align-items: flex-start;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    touch-action: pan-y;
  }

  .auth-modal {
    width: min(100%, 460px);
    max-height: none;
    margin: auto;
  }

  .auth-modal > .auth-modal-header,
  .auth-modal > .auth-tabs,
  .auth-modal > .auth-panels {
    padding-left: 16px;
    padding-right: 16px;
  }

  .auth-modal > .auth-modal-header {
    padding-top: 22px;
  }

  .auth-modal > .auth-panels {
    overflow: visible;
    padding-bottom: 20px;
  }

  .auth-modal-header {
    margin-bottom: 18px;
    padding-right: 42px;
  }

  .auth-modal-close {
    top: 10px;
    right: 10px;
  }

  .contact-modal {
    width: min(100%, 560px);
    max-height: none;
    overflow: visible;
    margin: auto;
  }

  .contact-modal {
    border-radius: 16px;
  }

  .contact-modal .contact-modal-header {
    padding: 24px 16px 0;
  }

  .contact-modal .contact-modal-form,
  .contact-modal .contact-media-contact {
    padding: 0 16px 20px;
  }

  .contact-modal .contact-modal-form {
    overflow: visible;
  }
}

/* Mobile portrait extra small */
@media (max-width: 480px) {
  .container {
    padding: 0 16px;
  }

  .hero-title {
    font-size: 1.75rem;
  }

  .hero-content {
    padding-top: 64px;
    padding-bottom: 72px;
  }

  .hero-tagline {
    max-width: 32ch;
    margin-left: auto;
    margin-right: auto;
    text-wrap: balance;
    line-height: 1.65;
  }

  .section-title {
    font-size: 1.5rem;
  }

  .stats-heading-dark {
    font-size: 1.5rem;
  }

  .stat-cinematic-card {
    padding: 16px;
  }

  .stat-number-cinematic {
    font-size: 2rem;
  }

  .solutions-group-featured {
    padding: 16px;
    border-radius: 16px;
  }

  .solution-card-glass {
    padding: 16px;
  }

  .research-card-v2.featured-large .research-card-image {
    height: 160px;
  }

  .footer-links-row {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .footer-logo {
    height: 42px;
  }

  .footer-wave {
    height: 84px;
    opacity: 0.5;
  }
}

/* Very small mobile */
@media (max-width: 360px) {
  .container {
    padding: 0 12px;
  }

  .hero-title {
    font-size: 1.5rem;
  }

  .section-title {
    font-size: 1.35rem;
  }

  .contact-banner-heading {
    font-size: 1.25rem;
  }
}

/* Phone landscape optimization (homepage focus) */
@media (max-width: 1024px) and (max-height: 600px) and (orientation: landscape) {
  .container {
    padding: 0 16px;
  }

  .navbar-brand {
    padding: 10px 0;
  }

  .navbar.scrolled .navbar-brand {
    padding: 8px 0;
  }

  .navbar-logo {
    height: 34px;
  }

  .navbar.scrolled .navbar-logo {
    height: 30px;
  }

  .nav-actions {
    gap: 2px;
  }

  .nav-icon-btn {
    width: 34px;
    height: 34px;
  }

  .nav-icon-btn svg {
    width: 16px;
    height: 16px;
  }

  .nav-mobile-toggle {
    padding: 6px;
  }

  .hero-section {
    min-height: auto;
  }

  .hero-content {
    padding-top: 108px;
    padding-bottom: 48px;
    gap: 24px;
    margin-top: 0;
    text-align: left;
    justify-content: flex-start;
    align-items: flex-start;
  }

  .hero-left {
    flex: none;
    max-width: 100%;
  }

  .hero-right {
    display: none;
  }

  .hero-title {
    font-size: clamp(2rem, 5vw, 2.8rem);
    line-height: 1.1;
    margin-bottom: 14px;
  }

  .hero-tagline br {
    display: none;
  }

  .hero-tagline {
    max-width: 100%;
    font-size: 0.98rem;
    line-height: 1.6;
    margin-bottom: 24px;
  }

  .hero-cta-group {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 12px;
    align-items: stretch;
    justify-content: flex-start;
  }

  .hero-cta.btn-primary,
  .hero-cta.btn-outline {
    width: auto;
    min-width: 210px;
    padding: 12px 18px;
    font-size: 0.88rem;
  }

  .rating-slider {
    position: static;
    bottom: auto;
    left: auto;
    margin-top: 8px;
    border-top-width: 1px;
  }

  .slider-track {
    animation-duration: 95s;
  }

  .slider-card {
    min-width: 190px;
    padding: 7px 12px;
    gap: 1px;
  }

  .slider-card::after {
    height: 52%;
  }

  .slider-tag {
    font-size: 0.48rem;
    letter-spacing: 0.045em;
    margin-bottom: 2px;
  }

  .slider-meta {
    gap: 4px;
  }

  .slider-date,
  .slider-action {
    font-size: 0.64rem;
  }

  .slider-meta-divider {
    font-size: 0.6rem;
  }

  .slider-entity {
    font-size: 0.95rem;
    margin: 1px 0;
    line-height: 1.15;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .slider-bond {
    font-size: 0.62rem;
  }

  .slider-bottom {
    padding-top: 3px;
    gap: 8px;
  }

  .slider-outlook {
    font-size: 0.68rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .slider-grade {
    font-size: 0.82rem;
  }

  .slider-card .slider-grade {
    padding: 1px 6px;
    border-radius: 3px;
  }

  .stats-section-dark {
    padding: 20px 0;
  }

  .stats-inner-box {
    padding: 24px 16px;
    border-radius: 14px;
  }

  .stats-section-header {
    margin-bottom: 18px;
  }

  .stats-heading-dark {
    font-size: 1.35rem;
    margin-bottom: 6px;
  }

  .stats-subheading-dark {
    font-size: 0.84rem;
    line-height: 1.45;
    max-width: 100%;
  }

  .stats-grid-cinematic {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: auto;
    gap: 0;
    border-top: 1px solid rgba(var(--secondary-rgb), 0.12);
  }

  .stat-cinematic-card {
    grid-row: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: 6px;
    border-left: none;
    border-top: 1px solid rgba(var(--secondary-rgb), 0.12);
    padding: 14px 10px;
  }

  .stat-cinematic-card:nth-child(1),
  .stat-cinematic-card:nth-child(2) {
    border-top: none;
  }

  .stat-cinematic-card:nth-child(odd) {
    border-right: 1px solid rgba(var(--secondary-rgb), 0.12);
  }

  .stat-cinematic-card:last-child {
    grid-column: 1 / -1;
    border-right: none;
  }

  .stat-number-cinematic {
    font-size: clamp(1.9rem, 4.3vw, 2.4rem);
    margin-bottom: 4px;
  }

  .stat-prelabel-cinematic {
    font-size: 0.76rem;
    margin-bottom: 0;
  }

  .stat-unit-cinematic {
    font-size: 0.9rem;
  }

  .stat-desc-cinematic {
    font-size: 0.82rem;
    line-height: 1.4;
    max-width: 100%;
    margin: 0;
  }

  .stat-desc-cinematic br {
    display: none;
  }
}

/* Scroll To Top Button */
.scroll-to-top {
  position: fixed;
  bottom: 40px;
  right: 40px;
  width: 48px;
  height: 48px;
  padding: 0;
  background: var(--primary-color);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 12px rgba(var(--primary-rgb), 0.15);
  z-index: 999;
}

.scroll-to-top:hover {
  background: var(--secondary-color);
  border-color: var(--secondary-color);
  transform: translateY(-5px);
  box-shadow: 0 8px 24px rgba(var(--secondary-rgb), 0.3);
  color: #fff;
}

.scroll-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.scroll-to-top svg {
  width: 24px !important;
  height: 24px !important;
  display: block;
  stroke: #ffffff !important;
  fill: none !important;
}

/* Mobile TOC Floating Button + Panel */
.mobile-toc-toggle {
  position: fixed;
  right: 40px;
  bottom: 100px;
  width: 48px;
  height: 48px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  background: var(--secondary-color);
  color: #fff;
  display: none;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 8px 20px rgba(var(--secondary-rgb), 0.25);
  z-index: 999;
}

.mobile-toc-toggle:hover {
  transform: translateY(-5px);
  background: #0073e6;
  border-color: #0073e6;
}

.mobile-toc-toggle.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.mobile-toc-toggle svg {
  width: 22px;
  height: 22px;
  display: block;
  stroke: #fff;
}

.mobile-toc-overlay {
  position: fixed;
  inset: 0;
  background: rgba(var(--primary-rgb), 0.46);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.25s ease, visibility 0.25s ease;
  z-index: 1150;
}

.mobile-toc-overlay.active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.mobile-toc-panel {
  position: absolute;
  right: 16px;
  bottom: 136px;
  width: min(360px, calc(100vw - 32px));
  max-height: min(60vh, 460px);
  overflow-y: auto;
  background: #fff;
  border: 1px solid var(--border-color);
  border-radius: 14px;
  box-shadow: 0 22px 44px rgba(var(--primary-rgb), 0.26);
  transform: translateY(8px) scale(0.98);
  transition: transform 0.25s ease;
}

.mobile-toc-overlay.active .mobile-toc-panel {
  transform: translateY(0) scale(1);
}

.mobile-toc-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--border-color);
  color: var(--primary-color);
  font-size: 0.88rem;
  font-weight: 700;
}

.mobile-toc-close {
  width: 30px;
  height: 30px;
  border: none;
  border-radius: 50%;
  background: var(--surface-color);
  color: var(--text-muted);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.mobile-toc-close svg {
  width: 16px;
  height: 16px;
  stroke: currentColor;
}

.mobile-toc-list {
  list-style: none;
  margin: 0;
  padding: 6px 14px 14px;
}

.mobile-toc-list li + li {
  border-top: 1px solid rgba(var(--primary-rgb), 0.08);
}

.mobile-toc-list a {
  display: block;
  padding: 11px 2px;
  color: #334155;
  font-size: 0.84rem;
  line-height: 1.45;
  text-decoration: none;
  transition: color 0.2s ease;
}

.mobile-toc-list a:hover,
.mobile-toc-list a.active {
  color: var(--secondary-color);
}

@media (max-width: 768px) {
  .scroll-to-top {
    bottom: 24px;
    right: 24px;
    width: 44px;
    height: 44px;
  }

  .mobile-toc-toggle {
    display: flex;
    right: 24px;
    bottom: 80px;
    width: 44px;
    height: 44px;
  }

  .mobile-toc-panel {
    right: 12px;
    bottom: 136px;
    width: min(360px, calc(100vw - 24px));
    max-height: min(64vh, 480px);
  }
}

@media (max-width: 1024px) and (max-height: 600px) and (orientation: landscape) {
  .scroll-to-top {
    width: 40px;
    height: 40px;
    right: 12px;
    bottom: 12px;
  }

  .scroll-to-top svg {
    width: 20px !important;
    height: 20px !important;
  }

  .mobile-toc-toggle {
    width: 40px;
    height: 40px;
    right: 12px;
    bottom: 58px;
  }

  .mobile-toc-panel {
    right: 10px;
    bottom: 108px;
  }
}

/* =========================================
   COOKIE CONSENT POPUP
   ========================================= */
.cookie-consent-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(var(--primary-rgb), 0.5);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 10001;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s ease, visibility 0.35s ease;
  padding: 16px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.cookie-consent-overlay.active {
  opacity: 1;
  visibility: visible;
}

.cookie-consent-popup {
  background: #fff;
  border-radius: 16px;
  width: 100%;
  max-width: 440px;
  max-height: 90vh;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  touch-action: pan-y;
  padding: 32px;
  position: relative;
  box-shadow: 0 32px 64px rgba(0, 0, 0, 0.2), 0 0 0 1px rgba(0, 0, 0, 0.04);
  transform: translateY(24px) scale(0.97);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.cookie-consent-overlay.active .cookie-consent-popup {
  transform: translateY(0) scale(1);
}

.cookie-popup-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 24px;
}

.cookie-setting-badge {
  display: inline-block;
  background: var(--primary-color);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.cookie-close-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--surface-color);
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  padding: 0;
}

.cookie-close-btn:hover {
  background: var(--border-color);
  color: var(--primary-color);
}

.cookie-popup-title {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  color: var(--primary-color);
  margin-bottom: 16px;
  font-weight: 700;
}

.cookie-popup-desc {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 12px;
}

.cookie-notice-link {
  display: inline-block;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--secondary-color);
  margin-bottom: 24px;
  text-decoration: none;
}

.cookie-notice-link:hover {
  text-decoration: underline;
}

.cookie-manage-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 16px;
}

.cookie-options {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-bottom: 24px;
}

.cookie-option {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 0;
  border-top: 1px solid var(--border-color);
}

.cookie-option:last-child {
  border-bottom: 1px solid var(--border-color);
}

.cookie-option-label {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--primary-color);
}

/* Toggle Switch */
.cookie-toggle {
  position: relative;
  display: inline-block;
  width: 48px;
  height: 26px;
  flex-shrink: 0;
  border: none;
  padding: 0;
  background: transparent;
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
}

.cookie-toggle-slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: #cbd5e1;
  border-radius: 26px;
  transition: background 0.3s ease;
  touch-action: manipulation;
}

.cookie-toggle-slider::before {
  content: '';
  position: absolute;
  height: 20px;
  width: 20px;
  left: 3px;
  bottom: 3px;
  background: #fff;
  border-radius: 50%;
  transition: transform 0.3s ease;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);
}

.cookie-toggle.checked .cookie-toggle-slider {
  background: var(--primary-color);
}

.cookie-toggle.checked .cookie-toggle-slider::before {
  transform: translateX(22px);
}

.cookie-toggle.always-on .cookie-toggle-slider {
  background: var(--primary-color);
  opacity: 0.7;
  cursor: not-allowed;
}

.cookie-toggle:disabled {
  cursor: not-allowed;
}

.cookie-toggle.always-on .cookie-toggle-slider::before {
  transform: translateX(22px);
}

/* Confirm Button */
.cookie-confirm-btn {
  display: block;
  width: 100%;
  max-width: 280px;
  margin: 0 auto;
  padding: 14px 32px;
  background: #fff;
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
  border-radius: 8px;
  font-size: 0.88rem;
  font-weight: 700;
  font-family: var(--font-main);
  letter-spacing: 1px;
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: center;
}

.cookie-confirm-btn:hover {
  background: var(--primary-color);
  color: #fff;
}

/* Cookie popup scrollbar */
.cookie-consent-popup::-webkit-scrollbar {
  width: 4px;
}

.cookie-consent-popup::-webkit-scrollbar-track {
  background: transparent;
}

.cookie-consent-popup::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 2px;
}

/* Cookie popup responsive */
@media (max-width: 480px) {
  .cookie-consent-overlay {
    padding: 16px;
    align-items: center;
  }

  .cookie-consent-popup {
    padding: 20px 16px;
    border-radius: 16px;
    max-height: 80vh;
    max-height: 80dvh;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  .cookie-popup-header {
    margin-bottom: 12px;
  }

  .cookie-popup-title {
    font-size: 1.15rem;
    margin-bottom: 8px;
  }

  .cookie-popup-desc {
    font-size: 0.8rem;
    margin-bottom: 8px;
    line-height: 1.5;
  }

  .cookie-notice-link {
    font-size: 0.8rem;
    margin-bottom: 8px;
  }

  .cookie-manage-title {
    font-size: 0.95rem;
    margin-bottom: 8px;
  }

  .cookie-option {
    padding: 10px 0;
  }

  .cookie-option-label {
    font-size: 0.85rem;
  }

  .cookie-confirm-btn {
    max-width: 100%;
    padding: 12px 24px;
    margin-top: 12px;
  }
}


/* =============================================
   RATING HISTORY CHART â€” Shared Component
   Injected via #rating-history-container in layout.js
   ============================================= */
.cp-rh-wrap {
  margin-top: 32px;
  border: 1px solid var(--border-color);
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
}

.cp-rh-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding: 14px 20px 12px;
  border-bottom: 1px solid var(--border-color);
}

.cp-rh-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 2px;
}

.cp-rh-source {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.cp-rh-source a {
  color: var(--secondary-color);
  text-decoration: none;
}

.cp-rh-export-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--secondary-color);
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 6px;
  white-space: nowrap;
}

.cp-rh-export-btn:hover {
  background: rgba(0, 123, 255, 0.07);
}

.cp-rh-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 16px;
  background: var(--surface-color);
  border-bottom: 1px solid var(--border-color);
  gap: 12px;
  flex-wrap: wrap;
}

.cp-rh-controls-left {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.cp-rh-select-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.cp-rh-select {
  appearance: none;
  -webkit-appearance: none;
  background: #fff;
  border: 1px solid var(--border-color);
  border-radius: 6px;
  padding: 5px 30px 5px 10px;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--primary-color);
  font-family: var(--font-main);
  cursor: pointer;
}

.cp-rh-select-caret {
  position: absolute;
  right: 8px;
  pointer-events: none;
  color: var(--text-muted);
}

.cp-rh-periods {
  display: flex;
  gap: 2px;
}

.cp-rh-period-btn {
  padding: 4px 10px;
  font-size: 0.78rem;
  font-weight: 500;
  border: 1px solid transparent;
  background: none;
  border-radius: 4px;
  cursor: pointer;
  color: var(--text-muted);
  font-family: var(--font-main);
  transition: all 0.15s ease;
}

.cp-rh-period-btn:hover {
  background: rgba(0, 123, 255, 0.07);
  color: var(--secondary-color);
}

.cp-rh-period-btn.active {
  background: var(--primary-color);
  color: #fff;
}

.cp-rh-period-btn:disabled,
.cp-rh-period-btn.disabled {
  opacity: 0.35;
  cursor: not-allowed;
  pointer-events: none;
}

.cp-rh-controls-right {
  display: flex;
  align-items: center;
  gap: 8px;
}

.cp-rh-unit-note {
  font-size: 0.73rem;
  color: var(--text-muted);
  font-style: italic;
  align-self: center;
  white-space: nowrap;
}

.cp-rh-view-btns {
  display: flex;
  border: 1px solid var(--border-color);
  border-radius: 6px;
  overflow: hidden;
}

.cp-rh-view-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 5px 9px;
  background: #fff;
  border: none;
  cursor: pointer;
  color: var(--text-muted);
  transition: all 0.15s ease;
}

.cp-rh-view-btn+.cp-rh-view-btn {
  border-left: 1px solid var(--border-color);
}

.cp-rh-view-btn.active {
  background: var(--primary-color);
  color: #fff;
}

.cp-rh-svg-wrap {
  padding: 12px 16px 10px;
  overflow-x: auto;
  overflow-y: hidden;
}

.cp-rh-svg {
  width: 100%;
  min-width: 560px;
  height: auto;
  display: block;
}

.cp-rh-yaxis {
  font-size: 11px;
  fill: #6b7280;
  font-family: var(--font-main, 'Inter', sans-serif);
}

.cp-rh-xaxis {
  font-size: 9px;
  fill: #6b7280;
  font-family: var(--font-main, 'Inter', sans-serif);
}

.cp-rh-legend {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  padding: 10px 20px 14px;
  flex-wrap: wrap;
  border-top: 1px solid var(--border-color);
}

.cp-rh-legend-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  color: var(--text-muted);
}

.cp-rh-legend-line {
  display: inline-block;
  width: 22px;
  height: 2px;
  background: #007BFF;
  border-radius: 1px;
}

/* Table view inside chart wrapper */
.cp-rh-table-wrap {
  overflow-x: auto;
  overflow-y: visible;
  min-height: 320px;
}

.cp-rh-table-wrap .cp-rating-table {
  border: none;
  border-radius: 0;
  box-shadow: none;
  background: transparent;
}

.cp-rh-table-wrap .cp-rt-head {
  background: var(--surface-color);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.3px;
  color: var(--text-muted);
  text-transform: uppercase;
  padding: 10px 20px;
  border-bottom: 1px solid var(--border-color);
}

.cp-rh-table-wrap .cp-rt-row {
  padding: 12px 20px;
  border-bottom: 1px solid var(--border-color);
  font-size: 0.875rem;
}

.cp-rh-table-wrap .cp-rt-row:last-child {
  border-bottom: none;
}

.cp-rh-table-wrap .cp-rt-row:hover {
  background: rgba(0, 123, 255, 0.03);
}

/* =====================================================
   COMPONENT: Rating Report Key Factors
   Configurable heatmap scales for rating report factors
   ===================================================== */

.rr-keyfactors {
  margin: 32px 0;
  padding: 28px;
  background: #fff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
}

.rr-keyfactors-title,
.rd-article .rr-keyfactors-title {
  margin: 0 0 20px;
  color: var(--text-dark);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.3px;
}

.rr-keyfactors-scale {
  margin-bottom: 20px;
}

.rr-keyfactors-scale:last-of-type {
  margin-bottom: 0;
}

.rr-keyfactors-scale--separated {
  padding-top: 16px;
  border-top: 1px solid var(--border-color);
}

.rr-keyfactors-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 3px;
}

.rr-keyfactors-table th {
  color: var(--text-muted);
  font-size: 0.68rem;
  font-weight: 400;
  line-height: 1.3;
  text-align: center;
  padding: 0 2px 6px;
}

.rr-keyfactors-table th:first-child {
  text-align: left;
  width: 180px;
  min-width: 180px;
}

.rr-kf-label {
  color: #334155;
  font-size: 0.82rem;
  padding-right: 12px;
  vertical-align: middle;
  width: 180px;
  min-width: 180px;
}

.rr-kf-label--bold {
  color: var(--text-dark);
  font-weight: 600;
}

.rr-kf-cell {
  height: 28px;
  border-radius: 3px;
  text-align: center;
  vertical-align: middle;
  font-size: 0.7rem;
  color: #1a1a2e;
}

.rr-kf-cell--risk-1 {
  background: #c0392b;
}

.rr-kf-cell--risk-2 {
  background: #e74c3c;
}

.rr-kf-cell--risk-3 {
  background: #f1948a;
}

.rr-kf-cell--risk-4 {
  background: #f5b7b1;
}

.rr-kf-cell--risk-5 {
  background: #fadbd8;
}

.rr-kf-cell--risk-6 {
  background: #d5f5e3;
}

.rr-kf-cell--risk-7 {
  background: #82e0aa;
}

.rr-kf-cell--risk-8 {
  background: #27ae60;
}

.rr-kf-cell--support-1 {
  background: #c0392b;
}

.rr-kf-cell--support-2 {
  background: #f5b7b1;
}

.rr-kf-cell--support-3 {
  background: #d5f5e3;
}

.rr-kf-cell--support-4 {
  background: #82e0aa;
}

.rr-kf-cell--support-5 {
  background: #27ae60;
}

.rr-kf-section-label {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-dark);
  padding: 2px 0 8px;
}

.rr-kf-cell--other-negative {
  background: #f5b7b1;
}

.rr-kf-cell--other-stable {
  background: #BFBFBF;
}

.rr-kf-cell--other-positive {
  background: #82e0aa;
}

.rr-keyfactors-source {
  margin-top: 16px;
  color: var(--text-muted);
  font-size: 0.75rem;
  font-style: italic;
}

@media (max-width: 768px) {
  .rr-keyfactors {
    padding: 16px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .rr-keyfactors-table {
    min-width: 600px;
  }

  .rr-keyfactors-table th:first-child,
  .rr-kf-label {
    width: 130px;
    min-width: 130px;
    font-size: 0.75rem;
  }
}

/* =====================================================
   COMPONENT: Rating Change Drivers
   Upgrade / downgrade narrative blocks for rating reports
   ===================================================== */

.rr-rating-drivers {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  margin: 32px 0;
}

.rr-rating-driver {
  border: 1px solid var(--rr-driver-border, var(--border-color));
  border-radius: var(--radius-sm);
  background: var(--rr-driver-bg, #fff);
  padding: 20px;
}

.rr-rating-driver--upgrade {
  --rr-driver-bg: #f2fbf7;
  --rr-driver-border: #bfead5;
  --rr-driver-icon-bg: #d8f5e8;
  --rr-driver-icon-color: #059669;
}

.rr-rating-driver--downgrade {
  --rr-driver-bg: #fff7f7;
  --rr-driver-border: #facaca;
  --rr-driver-icon-bg: #fee2e2;
  --rr-driver-icon-color: #dc2626;
}

.rr-rating-driver-heading,
.rd-article .rr-rating-driver-heading {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 14px;
  padding: 0;
  border: 0;
  color: var(--text-dark);
  font-family: var(--font-main);
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.35;
}

.rr-rating-driver-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--rr-driver-icon-color);
  background: var(--rr-driver-icon-bg);
}

.rr-rating-driver-icon svg {
  width: 18px;
  height: 18px;
}

.rr-rating-driver-text,
.rd-article .rr-rating-driver-text {
  margin: 0;
  color: #475569;
  font-size: 0.92rem;
  line-height: 1.75;
}

.rr-dynamic-disclosure {
  display: grid;
  gap: 10px;
  margin: 20px 0;
  padding: 16px 18px;
  background: var(--surface-color);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
}

.rr-dynamic-disclosure p,
.rd-article .rr-dynamic-disclosure p {
  margin: 0;
  color: #475569;
  font-size: 0.92rem;
  line-height: 1.65;
}

.rr-dynamic-disclosure strong {
  color: var(--text-dark);
  font-weight: 600;
}

.rr-rating-people {
  margin: 32px 0;
}

.rr-rating-people-group + .rr-rating-people-group {
  margin-top: 28px;
}

.rr-rating-people-group-title,
.rd-article .rr-rating-people-group-title {
  margin: 0 0 14px;
  color: var(--primary-color);
  font-family: var(--font-main);
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.35;
}

.rr-rating-people .rd-authors-grid {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.rr-rating-people .rd-author-card-bio a {
  color: var(--secondary-color);
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.rr-report-closing {
  margin: 32px 0;
  padding-top: 24px;
  border-top: 1px solid var(--border-color);
}

.rr-report-closing-inner {
  padding: 14px 18px;
  background: var(--surface-color);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  scroll-margin-top: 100px;
}

.rr-report-closing-title,
.rd-article .rr-report-closing-title {
  margin: 0 0 4px;
  color: var(--primary-color);
  font-family: var(--font-main);
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.4;
}

.rr-report-closing-text,
.rd-article .rr-report-closing-text {
  margin: 0;
  color: #475569;
  font-size: 0.95rem;
  line-height: 1.6;
}

.rr-report-closing-number {
  color: var(--secondary-color);
  font-weight: 700;
}

@media (max-width: 768px) {
  .rr-rating-drivers {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .rr-rating-driver {
    padding: 18px;
  }
}

/* =====================================================
   COMPONENT: SPO Opinion Matrix
   Sustainable finance assessment scale + legend
   ===================================================== */

.spo-opinion-panel {
  margin: 32px 0;
  padding: 24px;
  background: #f4f5f4;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  color: var(--text-dark);
}

.spo-opinion-header {
  display: grid;
  grid-template-columns: minmax(180px, 220px) minmax(340px, 1fr);
  column-gap: 12px;
  align-items: center;
  margin-bottom: 22px;
}

.spo-opinion-title,
.rd-article .spo-opinion-title {
  margin: 0;
  font-family: var(--font-serif);
  font-size: 1.25rem;
  line-height: 1.25;
  font-weight: 700;
  color: var(--text-dark);
  text-transform: uppercase;
  white-space: nowrap;
}

.spo-binary-table {
  width: 100%;
  table-layout: fixed;
  border-collapse: separate;
  border-spacing: 3px;
}

.spo-binary-table th,
.spo-binary-table td {
  width: 50%;
}

.spo-binary-table th {
  color: #475569;
  font-size: 0.82rem;
  font-weight: 600;
  line-height: 1.25;
  text-align: center;
  padding: 0 4px 4px;
}

.spo-binary-cell {
  height: 28px;
  border-radius: 4px;
  text-align: center;
  vertical-align: middle;
  font-size: 0.7rem;
  color: #1a1a2e;
}

.spo-binary-cell--none { background: #c7cac7; }
.spo-binary-cell--suitable { background: #35ab60; }

.spo-opinion-legend-labels {
  display: grid;
  color: #475569;
  font-size: 0.82rem;
  font-weight: 600;
  line-height: 1.25;
  text-align: center;
}

.spo-opinion-track {
  position: relative;
  display: grid;
  overflow: hidden;
  min-height: 28px;
  border-radius: 4px;
  background: #c7cac7;
}

.spo-opinion-track--legend {
  grid-template-columns: repeat(4, 1fr);
}

.spo-opinion-segment--none {
  background: #c7cac7;
}

.spo-opinion-segment--partial {
  background: #91ee91;
}

.spo-opinion-segment--suitable {
  background: #35ab60;
}

.spo-opinion-segment--best {
  background: #1c7d3c;
}

.spo-opinion-marker {
  position: absolute;
  top: 50%;
  left: var(--marker, 50%);
  width: 0;
  height: 0;
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
  border-top: 11px solid #fff;
  filter: drop-shadow(0 1px 2px rgba(11, 22, 44, 0.22));
  transform: translate(-50%, -50%);
  z-index: 2;
}

.spo-opinion-desc,
.rd-article .spo-opinion-desc {
  margin: 0 0 8px;
  color: #475569;
  font-size: 0.9rem;
  line-height: 1.7;
}

.spo-opinion-standards,
.rd-article .spo-opinion-standards {
  display: grid;
  gap: 3px;
  list-style: none;
  margin: 0 0 28px;
  padding: 0;
  color: #475569;
  font-size: 0.88rem;
  line-height: 1.5;
}

.spo-opinion-standards li,
.rd-article .spo-opinion-standards li {
  position: relative;
  margin: 0;
  padding-left: 18px;
}

.spo-opinion-standards li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  color: #4b5563;
  font-weight: 700;
}

.spo-kf-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 3px 6px;
}

.spo-kf-table th {
  color: #475569;
  font-size: 0.82rem;
  font-weight: 600;
  line-height: 1.25;
  text-align: center;
  padding: 0 4px 6px;
}

.spo-kf-table th:first-child {
  text-align: left;
  width: 200px;
  min-width: 200px;
}

.spo-kf-axis-title {
  color: #475569;
  font-size: 0.88rem;
  font-weight: 700;
  vertical-align: middle;
  padding-right: 12px;
  width: 200px;
  min-width: 200px;
}

.spo-kf-row-title {
  color: #475569;
  font-size: 0.88rem;
  font-weight: 500;
  vertical-align: middle;
  padding-right: 12px;
}

.spo-kf-cell {
  height: 28px;
  border-radius: 4px;
  text-align: center;
  vertical-align: middle;
  font-size: 0.7rem;
  color: #1a1a2e;
}

.spo-kf-cell--none { background: #c7cac7; }
.spo-kf-cell--partial { background: #91ee91; }
.spo-kf-cell--suitable { background: #35ab60; }
.spo-kf-cell--best { background: #1c7d3c; }

.spo-opinion-source {
  margin-top: 8px;
  color: #64748b;
  font-size: 0.78rem;
  font-style: italic;
}

.spo-opinion-legend {
  margin: 20px 0 32px;
  padding: 14px 18px 18px;
  background: #f4f5f4;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
}

.spo-opinion-legend .spo-opinion-track {
  min-height: 20px;
  margin-bottom: 9px;
}

.spo-opinion-legend-labels {
  grid-template-columns: repeat(4, 1fr);
  color: var(--text-dark);
  font-size: 0.9rem;
}

.rr-lang-separator {
  width: 1px;
  height: 16px;
  background-color: var(--border-light);
  margin: 0 8px;
  margin: 0 8px 0 4px;
}

@media (max-width: 768px) {
  .spo-opinion-panel {
    padding: 18px;
  }

  .spo-opinion-header {
    grid-template-columns: 1fr;
    column-gap: 0;
    row-gap: 10px;
  }

  .spo-opinion-title,
  .rd-article .spo-opinion-title {
    font-size: 1.05rem;
    white-space: normal;
  }

  .spo-opinion-matrix-scroll {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin: 0 -18px;
    padding: 0 18px 4px;
  }

  .spo-kf-table {
    min-width: 480px;
  }

  .spo-opinion-legend {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .spo-opinion-legend-inner {
    min-width: 560px;
  }
}

/* =====================================================
   COMPONENT: SPO Rating Bar Table (spo-rating-bar-table)
   Single-criterion rating bar; stands alone inside article
   Label column left, 4 connected colour cells right, labels below
   ===================================================== */

.spo-rating-bar-wrap {
  margin: 16px 0 24px;
  padding: 16px 20px 20px;
  background: #f4f5f4;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
}

.spo-rating-bar-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
}

.spo-rating-bar-cell {
  height: 28px;
  padding: 0;
  width: 25%;
  text-align: center;
  vertical-align: middle;
  font-size: 0.85rem;
  color: #1a1a2e;
}

.spo-rating-bar-row .spo-rating-bar-cell:first-child {
  border-radius: 4px 0 0 4px;
}
.spo-rating-bar-row .spo-rating-bar-cell:last-child {
  border-radius: 0 4px 4px 0;
}

.spo-rating-bar-cell--none    { background: #c7cac7; }
.spo-rating-bar-cell--partial { background: #91ee91; }
.spo-rating-bar-cell--suitable{ background: #35ab60; color: #fff; }
.spo-rating-bar-cell--best    { background: #1c7d3c; color: #fff; }

.spo-rating-bar-labels-row td {
  font-size: 0.82rem;
  font-weight: 600;
  color: #475569;
  text-align: center;
  padding: 6px 4px 0;
  line-height: 1.25;
  width: 25%;
}

@media (max-width: 768px) {
  .spo-rating-bar-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding: 14px 14px 16px;
  }
  .spo-rating-bar-table {
    min-width: 480px;
  }
}

/* =====================================================
   COMPONENT: Intro Layout (intro-layout)
   2-column section: left = title + lead, right = items
   Variants: intro-layout-cards (grid) | intro-layout-points (list)
   ===================================================== */

.intro-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}

.intro-layout-text .section-title {
  margin-bottom: 20px;
}

.intro-layout-lead {
  font-size: 1.05rem;
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: 0;
}

/* --- Variant A: Cards grid --- */
.intro-layout-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.intro-layout-card {
  background: var(--surface-color);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 28px 24px;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
  position: relative;
  overflow: hidden;
}

.intro-layout-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--secondary-color), var(--accent-color));
  opacity: 0;
  transition: opacity 0.3s ease;
}

.intro-layout-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
  border-color: var(--secondary-color);
}

.intro-layout-card:hover::before {
  opacity: 1;
}

.intro-layout-card-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(var(--secondary-rgb), 0.08);
  color: var(--secondary-color);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
}

.intro-layout-card h3,
.intro-layout-card h4 {
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--primary-color);
}

.intro-layout-card p {
  color: var(--text-muted);
  font-size: 0.88rem;
  line-height: 1.7;
  margin: 0;
}

/* --- Variant B: Points list --- */
.intro-layout-points {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.intro-layout-points li {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  background: var(--surface-color);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 24px;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.intro-layout-points li:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-hover);
  border-color: var(--secondary-color);
}

.intro-point-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(var(--secondary-rgb), 0.08);
  color: var(--secondary-color);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.intro-point-text h3,
.intro-point-text h4 {
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--primary-color);
}

.intro-point-text p {
  color: var(--text-muted);
  font-size: 0.88rem;
  line-height: 1.7;
  margin: 0;
}

/* --- Modifier: Featured (dark) right column --- */
.intro-layout-label {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 12px;
  margin-bottom: 16px;
}

.intro-layout--featured .intro-layout-cards,
.intro-layout--featured .intro-layout-points {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
  border-radius: var(--radius-lg);
  padding: 28px;
  position: relative;
  overflow: hidden;
}

.intro-layout--featured .intro-layout-label {
  color: var(--accent-color);
  border-bottom-color: rgba(var(--accent-rgb), 0.25);
}

.intro-layout--featured .intro-layout-card {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.12);
}

.intro-layout--featured .intro-layout-card:hover {
  background: rgba(255, 255, 255, 0.14);
  border-color: var(--accent-color);
  box-shadow: none;
  transform: none;
}

.intro-layout--featured .intro-layout-card::before {
  display: none;
}

.intro-layout--featured .intro-layout-card h3,
.intro-layout--featured .intro-layout-card h4 {
  color: #fff;
}

.intro-layout--featured .intro-layout-card p {
  color: rgba(255, 255, 255, 0.7);
}

.intro-layout--featured .intro-layout-card-icon {
  background: rgba(var(--accent-rgb), 0.15);
  color: var(--accent-color);
}

.intro-layout--featured .intro-layout-card.highlighted {
  background: rgba(255, 255, 255, 0.14);
  border-color: var(--accent-color);
  box-shadow: 0 0 0 1px rgba(var(--accent-rgb), 0.4), 0 8px 24px rgba(0, 0, 0, 0.2);
}

.intro-layout--featured .intro-layout-points li {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.12);
}

.intro-layout--featured .intro-layout-points li:hover {
  background: rgba(255, 255, 255, 0.14);
  border-color: var(--accent-color);
  box-shadow: none;
  transform: none;
}

.intro-layout--featured .intro-layout-points li.highlighted {
  background: rgba(255, 255, 255, 0.14);
  border-color: var(--accent-color);
  box-shadow: 0 0 0 1px rgba(var(--accent-rgb), 0.4), 0 8px 24px rgba(0, 0, 0, 0.2);
}

.intro-layout--featured .intro-point-text h3,
.intro-layout--featured .intro-point-text h4 {
  color: #fff;
}

.intro-layout--featured .intro-point-text p {
  color: rgba(255, 255, 255, 0.7);
}

.intro-layout--featured .intro-point-icon {
  background: rgba(var(--accent-rgb), 0.15);
  color: var(--accent-color);
}

/* --- Responsive --- */
@media (max-width: 992px) {
  .intro-layout {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .intro-layout--featured .intro-layout-cards,
  .intro-layout--featured .intro-layout-points {
    border-radius: var(--radius-md);
    padding: 20px;
  }
}

@media (max-width: 768px) {
  .intro-layout-cards {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .intro-layout-card {
    padding: 24px 16px;
    border-radius: 16px;
  }
}

@media (max-width: 480px) {
  .intro-layout-lead {
    font-size: 0.95rem;
  }
}

/* ── POST CONTENT (CMS rich-text body) ── */
.post-content {
  font-size: 1.02rem;
  line-height: 1.78;
  color: var(--text-dark);
}

.post-content > *:first-child {
  margin-top: 0;
}

.post-content p {
  margin: 0 0 16px;
}

.post-content h2 {
  font-family: var(--font-serif);
  font-size: 1.32rem;
  line-height: 1.4;
  color: var(--primary-color);
  margin: 28px 0 10px;
}

.post-content h3 {
  font-size: 1.12rem;
  font-weight: 600;
  color: var(--primary-color);
  margin: 24px 0 8px;
}

.post-content ul,
.post-content ol {
  margin: 0 0 16px;
  padding-left: 22px;
}

.post-content li {
  margin-bottom: 7px;
}

.post-content a {
  color: var(--secondary-color);
  text-decoration: none;
  border-bottom: 1px solid rgba(var(--secondary-rgb), 0.3);
  transition: border-color 0.2s;
}

.post-content a:hover {
  border-bottom-color: currentColor;
}

.post-content strong {
  color: var(--primary-color);
  font-weight: 700;
}

.post-content blockquote {
  margin: 24px 0;
  padding: 14px 20px;
  border-left: 3px solid var(--secondary-color);
  background: rgba(var(--secondary-rgb), 0.05);
  font-style: italic;
  border-radius: 0 6px 6px 0;
}

.post-content blockquote p:last-child {
  margin-bottom: 0;
}

.post-content img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin: 24px 0;
  display: block;
}

.post-content figure {
  margin: 24px 0;
}

.post-content figcaption {
  font-size: 0.85rem;
  color: var(--text-muted);
  text-align: center;
  margin-top: 8px;
  font-style: italic;
}

.post-content table:not(.rd-data-table) {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
  font-size: 0.92rem;
}

.post-content table:not(.rd-data-table) th,
.post-content table:not(.rd-data-table) td {
  padding: 10px 14px;
  border: 1px solid var(--border-color);
  text-align: left;
  vertical-align: top;
}

.post-content table:not(.rd-data-table) th {
  background: var(--surface-color);
  color: var(--primary-color);
  font-weight: 600;
}

.post-content .table-wrap {
  overflow-x: auto;
  margin: 20px 0;
}

.post-content .table-wrap table {
  margin: 0;
}

@media (max-width: 768px) {
  .post-content {
    font-size: 0.96rem;
    line-height: 1.7;
  }

  .post-content h2 {
    font-size: 1.18rem;
  }
}

.rd-print-toc,
.rd-print-credit-header,
.rd-print-credit-footer {
  display: none !important;
}
